-
-
Notifications
You must be signed in to change notification settings - Fork 0
Package doesn't work with --disable-proto=delete
#4
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
Comments
You're right; the semantics of I'm not sure I care to support this particular node flag - it's just not reasonable to enable it with how many parts of the ecosystem it breaks. It wouldn't be hard to add, but it'd add an extra dependency on |
Would you be willing to support this scenario for where the |
Indeed, it'd remove the has-proto dep. My robustness constraints don't allow me to solely rely on Reflect, though - I'll probably end up adding the dep. |
Thanks! Not relying on |
I think the accessor is fine as-is, personally, and removing it isn't "better", but correctness does matter, and it was clearly incorrect. (also, an environment without it isn't actually an environment built on web standards, since the web requires it to always be present) v1.0.3 will be published later today. |
v1.0.3 is released. I'll also add some regression tests. |
When I run the unit tests with
NODE_OPTIONS=--disable-proto=delete
I get the following error:I think this is because the has-proto only checks if
__proto__
is allowed on object creation and not after the fact?The text was updated successfully, but these errors were encountered: