Closed
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