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 — module: add changes that should have been in 18394 by devsnek · Pull Request #18509 · nodejs/node Conversation
|
|
cc @iamstolis |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@devsnek is it possible to add a test for this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@BridgeAR i'm not sure exactly how, we don't expose ModuleWrap itself and generally we test implementations not their native backing right? i originally couldn't figure out how to test this because i wasn't sure how to insert a super long job into the node loader, but its usage in vm.Module ensures the behavior works, which is how i caught that bug with settings the elements of the promise array. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hm ok. If someone has an idea: I guess it would be nice to add a test just to make sure. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looks good to me, thanks for the fix. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
I should've caught this sooner... LGTM with tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
...and a better commit log. What changes? Why? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
afaik there's no way to test internalBinding modules, if anyone has an idea on how to do that please let me know |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
You can export the binding from an internal/ module |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@targos that seems pretty messy, maybe we can provide internalBinding to certain tests by folder or something similar? (perhaps tests/internal, as a separate pr, although i don't want to block this pr, i'm very conflicted rn, i'll add it for this pr and then look into removing it later) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d753441 to
968ca4a
Compare
* switch vm.Module internals to use the new link method properly * fix bug with ModuleWrap::Link * add tests for ModuleWrap::Link
968ca4a to
35a175a
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in b0f114d. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit fixes up some issues in #18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: #18509 Fixes: #18249 Refs: #18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
|
This should come with #17560 when it is backported |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
this should be directly backported with #18394 not #17560 or the loader will stop working. i'm not sure what to do about the changes to the vm module file |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This commit fixes up some issues in nodejs#18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: nodejs#18509 Fixes: nodejs#18249 Refs: nodejs#18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
This commit fixes up some issues in #18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: #18509 Fixes: #18249 Refs: #18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
This commit fixes up some issues in #18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: #18509 Fixes: #18249 Refs: #18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
This commit fixes up some issues in #18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: #18509 Fixes: #18249 Refs: #18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
This commit fixes up some issues in nodejs#18394. * Switch vm.Module internals to use the new link method properly * Fix bug with ModuleWrap::Link * Add tests for ModuleWrap::Link PR-URL: nodejs#18509 Fixes: nodejs#18249 Refs: nodejs#18394 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
|
Should this be backported to |
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.