GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — vm: refactor to use more primordials by aduh95 · Pull Request #36023 · nodejs/node Conversation
Contributor
Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
This comment has been minimized.
Trott
approved these changes
This comment has been minimized.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
3 tasks done
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
pushed a commit
that referenced
this pull request
PR-URL: #36023 Reviewed-By: Rich Trott <[email protected]>
codebytere
pushed a commit
that referenced
this pull request
PR-URL: #36023 Reviewed-By: Rich Trott <[email protected]>
Merged
BethGriggs
pushed a commit
that referenced
this pull request
PR-URL: #36023 Reviewed-By: Rich Trott <[email protected]>
BethGriggs
pushed a commit
that referenced
this pull request
PR-URL: #36023 Reviewed-By: Rich Trott <[email protected]>
Merged
BethGriggs
pushed a commit
that referenced
this pull request
PR-URL: #36023 Reviewed-By: Rich Trott <[email protected]>
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
@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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hmm looking deeper into this, I don't think it has to do with the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@aduh95 this is what fails, so it's NOT because of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.