-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
callBound: support --frozen-intrinsics
/lockdown?
#4
Comments
Can you provide a minimal reproduce using Seems like a node.js bug to me now. |
It's not a bug, exactly, it's the entire point of the flag - iow, you simply can't ever use that flag without violating the JS spec and breaking nonzero user code. |
inspect-js/is-regex#34 (comment)
inspect-js/is-regex#34 (comment)
Related 🤔
|
You simply can't prevent prototype pollution at a broad level without breaking things. |
When
node
is invoked with--frozen-intrinsics
, many data properties become getters.RegExp.prototype.exec
is one example.Should callBound automatically detect this at all? If so, should it detect
--frozen-intrinsics
specifically, or not? Either way, would it have to hardcode a list of the exact same data properties that frozen-intrinsics (and SES) convert to getters? (or alternatively, hardcode a list of all the builtins that are supposed to be getters, and auto-handle the rest).See inspect-js/is-regex#34.
The text was updated successfully, but these errors were encountered: