-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
Description
v16.0.0 / process
#36902 made process.config
immutable. That's fine in principle but the use of a Proxy
breaks the following code:
v8.serialize(process.config) // Uncaught Error: #<Object> could not be cloned.
The properties themselves are proxies too so Object.fromEntries(Object.entries(process.config))
is not an easy workaround.
I suggest using Object.freeze()
or Object.seal()
instead.
cc @jasnell
Metadata
Metadata
Assignees
Labels
processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.