-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
Version
21.2.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
vm
What steps will reproduce the bug?
PS E:\code> node
Welcome to Node.js v21.2.0.
Type ".help" for more information.
> const vm = require('node:vm')
undefined
> vm.runInNewContext("Symbol.dispose")
undefined
> vm.runInNewContext("Symbol")
[Function: Symbol]
How often does it reproduce? Is there a required condition?
Can be reproduced stably
What is the expected behavior? Why is that the expected behavior?
Symbol.dispose
should not be undefined. Because it is avaliable in globally, so it should also be avaliable in vm.
What do you see instead?
vm.runInNewContext("Symbol.dispose")
outputs undefined
.
Additional information
No response
Metadata
Metadata
Assignees
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.