Uh oh!
There was an error while loading. Please reload this page.
process: use frozen array for process.allowedNodeEnvironmentFlags - #37171
process: use frozen array for process.allowedNodeEnvironmentFlags#37171aduh95 wants to merge 4 commits into
Conversation
Maintain no-op calls of `Set` prototype methods to `process.allowedNodeEnvironmentFlags` for backward compatibility.
benjamingr
commented
Feb 1, 2021
I don't like having a weird set-like-array-object around - wouldn't it be simpler to subclass SafeSet in a way that noops on mutations? |
benjamingr
commented
Feb 1, 2021
Oh, I see that's what the current code does, then the issue is getting external set prototype calls on the set mutating it? |
Yes, I did a proposal in #36660 to circumvent the direct |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Maintain no-op calls of
Setprototype methods toprocess.allowedNodeEnvironmentFlagsfor backward compatibility.Labeled as
semver-majoras it makes following code throw:Originally suggested by @Trott in #36660 (review).