Uh oh!
There was an error while loading. Please reload this page.
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.
nodejs-github-bot
commented
Nov 7, 2020
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>
rubenstolk
commented
Dec 17, 2020
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... |
aduh95
commented
Dec 17, 2020
@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 |
rubenstolk
commented
Dec 17, 2020
Hmm looking deeper into this, I don't think it has to do with the |
aduh95
commented
Dec 17, 2020
@rubenstolk I'm not able to reproduce the bug: $node--versionv14.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. |
rubenstolk
commented
Dec 17, 2020
@aduh95 this is what fails, so it's NOT because of |
@rubenstolk constresult={ ...(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