A bug about vm module #4698
Replies: 0 comments 6 replies
-
Can you elaborate why you expect that? |
Beta Was this translation helpful? Give feedback.
-
Because the output is false in the browser environment and false in the v8 environment, but true in the vm environment |
Beta Was this translation helpful? Give feedback.
-
@xiaotiananan if you want to see false, just call |
Beta Was this translation helpful? Give feedback.
-
@koshic has it right. Closing as not a bug, can convert to a discussion if needed (edit: done) |
Beta Was this translation helpful? Give feedback.
-
If I want to create a new context to execute the script, what should I do. My purpose is not to execute the script in the current context. Why can't we get the same results in the new context as in the browser environment. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
18.4.1
Platform
No response
Subsystem
vm
What steps will reproduce the bug?
"The console should output false, but the result is true"
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
The console should output false, but the result is true
What do you see instead?
The console output true
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions