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 — src: remove unused env->vm_parsing_context_symbol by maclover7 · Pull Request #22034 · nodejs/node Conversation
|
|
@maclover7 build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/384/pipeline |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is still very much used in https://github.com/nodejs/node/blob/master/lib/vm.js. The way the symbol was used in that file made the tests magically pass (as the string key 'undefined' is used in place).
In that particular file the symbol could just be changed to a regular local one declared with Symbol().
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@TimothyGu But is the property read anywhere? At a glance, it looks like this would be safe to remove from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, sorry, missed the I agree with @addaleax though that the use in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
+1 for removal and using a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@TimothyGu I updated to use a symbol declared inside |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks good, thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in bd2ee60, thank you for the reviews! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Stopped being used via 77b52fd, was originally added in d932e80. For the one remaining usecase inside of `lib/vm.js`, define a Symbol at the top of the file. PR-URL: #22034 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
|
@maclover7 @TimothyGu Uh … this seems to have gotten lost in the discussion, but still, does anything speak against removing this key completely? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@addaleax The symbol is used to transmit the parsing context information from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Stopped being used via 77b52fd, was originally added in d932e80. For the one remaining usecase inside of `lib/vm.js`, define a Symbol at the top of the file. PR-URL: #22034 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Stopped being used via 77b52fd, was originally added in d932e80. For the one remaining usecase inside of `lib/vm.js`, define a Symbol at the top of the file. PR-URL: nodejs/node#22034 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
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.