-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
util.inspect different in vm #4080
Copy link
Copy link
Closed
Labels
utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Metadata
Metadata
Assignees
Labels
utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
I'm not entirely sure if this is a bug or my misunderstanding, but I was surprised to discover that these two expressions have different values in the 5.1.0 node repl:
or for standalone examples outside of the repl:
Is this intended behavior? Is there a way to get the repl equivalent result from
util.inspectin avmwithout resorting to string replacement?