-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vm: refactor to use more primordials #36023
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Landed in 8297860...1d02a35 |
PR-URL: #36023 Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #36023 Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #36023 Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #36023 Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #36023 Reviewed-By: Rich Trott <rtrott@gmail.com>
Great - an automatic upgrade from 14.15.1 to 14.15.2 started crashing our production environment. Lesson learnt, don't accept minor updates from Node just like that... |
@rubenstolk Do you want to open an issue describing the bug? |
@aduh95 I don't know if it's a bug. While running this inside a vm script:
This piece of code has been working for years, but since |
Hmm looking deeper into this, I don't think it has to do with the |
@rubenstolk I'm not able to reproduce the bug: $ node --version
v14.15.2
$ node -p 'new vm.Script("\
const req = { headers: { headerKey: `value` }, method : `value` };\
const dummy = { ...req, method: undefined };\
dummy.headers\
").runInNewContext()'
{ headerKey: 'value' } I'm seeing the expected Opening a new issue would make your problem likely to be fixed quicker as more people would notice the issue and help fix it – only people already subscribed to this thread are seeing our messages here. |
@aduh95 this is what fails, so it's NOT because of
|
@rubenstolk const result = {
...(Object.create(
{
prototypeProperty: "foo",
},
{
nonEnumerableProperty: {
configurable: true,
enumerable: false,
writable: true,
value: 123,
}
}
)),
}; Results in an empty object with a prototype of |
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes