util: fix inspecting of proxy objects by jasnell · Pull Request #6465 · nodejs/node
Checklist
- tests and code linting passes
- a test and/or benchmark is included
- the commit message follows commit guidelines
Affected core subsystem(s)
util
Description of change
In certain conditions (see #6464), inspecting a Proxy object can lead to a max call stack error. Avoid that by detecting the Proxy object and outputting information about the Proxy object itself.
Also adds util.isProxy()
Fixes: #6464
/cc @bnoordhuis