-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working for an specific case of async fonction with destructured parameter #1036
Comments
This issue was caused by the regex function that is used to identify the invalid function syntax failing. I believe this is further causing some issue for an inline (non lambda) function like below. const obj = {
fn: function (par1, par2) { }
}; I'm fixing this issue, and should be fixed asap. |
I fixed the issue, please try using version please confirm if above fixed your issue. |
Thanks ! It's working for this case. Anyway, i'm still having an issue with another specific case. But i struggle to reproduce it with a unit test. If you want, we can close this issue and i can create another one when i will able to find an easy way to reproduce it. Update: I found the failing case it('should return no parameters of a class with private getter properties and no constructor', () => {
class MyClass {
#options;
get options() {
return this.#options;
}
}
const metadata = reflect(MyClass);
expect(metadata).toBeDefined();
}); I'm having this error
Same problem with a class with a constructor and parameters, is the getter the root of the problem. |
Hi @sebaplaza I found this issue is bug in my code. For a moment I found that this will causing error on a getter/setter which accessed private field. I will push a fix asap related to this. do you have any issue related to this beside using getter/setter? |
no, no others issues related, thanks ! i create an issue to track this bug or is ok for you ? |
Yes I think its better in another ticket because its unrelated with the tittle. Thanks |
Please try using |
Everything is working now Thanks a lot ! Note: a made an issue to trace the problem (fixed) |
Hello,
reflect is not working in a specific case
Thanks !
Note: continuation of #1027
The text was updated successfully, but these errors were encountered: