Join GitHub today
util: fix util.inspect with proxied function #25244
It does not hurt to do this but it will not solve the overall issue with proxies: they are difficult to reason with and even more difficult to write in a way that does not interfere with things.
We trigger multiple traps while inspecting an object and we can not work around all of the issues that might potentially come up.
Another example that would fail is using an empty array instead of the function.
@BridgeAR Agreed. We can not fix all these issues. For example, an array with a weird proxy is hard to fix.
But at least we can make it a little better :-)