-
Notifications
You must be signed in to change notification settings - Fork 339
Inconsistent behaviour with vm context of Object.create(null)
#508
Comments
I don't believe that this is to do with the |
Unless you expect that, but you expect that using that as the global should have different behavior? |
whereas the top example works for |
Ok, just had a look and a bare |
I somewhat feel like this might be one of those edge-cases that may not be fully intended in node upstream? I know I asked about what happens in some strange cases when properties conflict between the sandbox and the global, and there wasn't a good answer to what was expected. I would somewhat expect that if you say "Use this sandbox object, and I've removed everything from it" that you wouldn't want it to have things like the prototype properties; just a bare minimal global object. |
I want to be absolutely sure to avoid any Having said that, I do understand your reason for the current behaviour in |
We definitely want to have minimal platform differences. The problem here is trying to understand what the underlying expected behavior is, given that this vm context stuff isn't strongly specced out, and "what node-v8 does" isn't necessarily right in all cases either since there are some questions about whether they do the right thing in some circumstances. |
Thanks for the dicussion and clarifications - meanwhile I'll see if I can come up with an alternative test case in |
Reverted the workaround in |
Still an issue as of |
Reproducible in |
Node.js
node-chakracore
The text was updated successfully, but these errors were encountered: