Inconsistent inspector output of exec new Map()
#42405
Labels
debugger
Issues and PRs related to the debugger subsystem.
exec new Map()
#42405
Version
v17.7.2
Platform
Darwin 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
The output should be the same as
util.inspect(new Map())
, which meansWhat do you see instead?
Additional information
This is caused by
RemoteObject
not considering Map object (and also Set object).https://github.com/nodejs/node/blob/master/lib/internal/debugger/inspect_repl.js#L236-L249
I'd like to send a PR that fixes this problem if ok.
The text was updated successfully, but these errors were encountered: