You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in #42963 that the setter will be called only once.
However, the receiver of the setter is the sandbox object but not the globalThis inside the vm, which is expected bahavior, and the code snippet will print:
Version
v17.2.0
Platform
Darwin tidyzq 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:47 PDT 2021; root:xnu-7195.101.2~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?
always reproduce.
What is the expected behavior?
We expect the above code to output:
What do you see instead?
node v17.2.0 got the following output:
Additional information
Only reproduced if a setter is added to
globalThis
in vm. Adding setter on plain object or run outside vm got the expected output.Reproduced in node v10.24.1, v16.5.0, v17.2.0, both in repl mode and execution mode.
Not sure about version lower than v10.
The text was updated successfully, but these errors were encountered: