-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Bug: Cannot set property native of #<Object> which has only a getter #190
Comments
same |
I’d be happy to fix this, but some reproduction code would be very helpful. |
It was in the middle of a complex series of asynchronous tests, so I am not sure I am able to reproduce at this time. My assumption is that the mask is attempting to override a value that doesn't have a setter. |
#192 is a reproduction of the issue. |
Thank you guys and especially @quinnturner for your test case. It helped a lot. So basically I just removed one line: Object.defineProperty(o, prop, Object.getOwnPropertyDescriptor(source, prop)!); And here is the explanation, why setters are visible for plain object but not class instances: V4.4.5 is coming now. |
Describe the bug
To Reproduce
Working on a reproduction. I assume that it has to do with masking a value that only has a getter?
Expected behavior
Not sure what to do here, but erroring out is not desirable.
Node.js Version
e.g. 18
The text was updated successfully, but these errors were encountered: