Skip to content

Debugging experience with proxies #3218

Answered by urugator
vjau asked this question in Q&A
Discussion options

You must be logged in to vote

The proxy should be completely indistinguishable from the proxied object for the consuming code. When you see some difference in output, it's a "feature" of the runtime. So this is more of an issue of the introspection tools of these libraries/nodejs. However I just tried vscode/chrome/terminal and the string output is always the original object (even for util.inspect by default - there is a flag) or in case of interactive env (debugger/chrome console) the object is inspectable under [[target]] prop. Did not try jest.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vjau
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants