Reflect.has
triggers getters on global object contextified by vm
#52737
Labels
vm
Issues and PRs related to the vm subsystem.
Version
v20.12.2
Platform
Darwin Laurents-MacBook-Air.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64
Subsystem
vm
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
All the time.
What is the expected behavior? Why is that the expected behavior?
Reflect.has
should never trigger getter.What do you see instead?
Reflect.has
triggers getters for contextified global object. This is somehow similar to #52720 in that it makes contextified global objects break some invariants of the language.In case anyone is wondering, I use
vm
to avoid having to spawn a new node process for each test cases of the test262 suite. These invariant breakages make some of them fail.Maybe
vm
's contextified object are meant to be "magical" and I should stop reporting these issues. But then I feel this information would be a worthwhile addition to the doc.Additional information
No response
The text was updated successfully, but these errors were encountered: