Uh oh!
There was an error while loading. Please reload this page.
esm: add back globalPreload tests - #48779
Merged
Merged
Conversation
nodejs-github-bot
commented
Jul 15, 2023
Collaborator
Review requested:
|
GeoffreyBooth
approved these changes
Jul 15, 2023
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Jul 15, 2023
Collaborator
nodejs-github-bot
commented
Jul 16, 2023
Collaborator
JakobJingleheimer
approved these changes
Jul 16, 2023
JakobJingleheimer
left a comment
Member
There was a problem hiding this comment.
🙌 awesome, thanks for tackling this!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
nodejs-github-bot
commented
Jul 16, 2023
Collaborator
25 tasks
nodejs-github-bot
commented
Jul 17, 2023
Collaborator
aduh95
commented
Jul 17, 2023
ContributorAuthor
Landed in 16b8c71 |
This was referenced Jul 18, 2023
16 tasks
Ceres6 pushed a commit
to Ceres6/node
that referenced
this pull request
Aug 14, 2023
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
Ceres6 pushed a commit
to Ceres6/node
that referenced
this pull request
Aug 14, 2023
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
UlisesGascon pushed a commit
to UlisesGascon/node
that referenced
this pull request
Aug 14, 2023
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
RafaelGSS pushed a commit
that referenced
this pull request
Aug 15, 2023
Merged
targos pushed a commit
to targos/node
that referenced
this pull request
Nov 11, 2023
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
targos pushed a commit
that referenced
this pull request
Nov 23, 2023
sercher added a commit
to sercher/graaljs
that referenced
this pull request
Apr 25, 2024
PR-URL: nodejs/node#48779 Backport-PR-URL: nodejs/node#50669Fixes: nodejs/node#48778Fixes: nodejs/node#48516 Refs: nodejs/node#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
sercher added a commit
to sercher/graaljs
that referenced
this pull request
Apr 25, 2024
PR-URL: nodejs/node#48779 Backport-PR-URL: nodejs/node#50669Fixes: nodejs/node#48778Fixes: nodejs/node#48516 Refs: nodejs/node#46402 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This started as a revert of 938341a.
#44710 removed
setImportMetaCallback, removing possibility for hooks authors to modify theimport.metaobject. It also removed all hooks execution when node entry point was not a file (e.g. REPL,--eval, etc.) which was not a problem except forglobalPreloadwhich is always supposed to run. I've added some tests to ensureglobalPreloadbehaves correctly in this case.I've also added back the test that was removed in #46402 because it's good test for
globalPreloadand ensures mocking works – which is a very important use case for hooks IMO.Refs: #46402
Fixes: #48778
Fixes: #48516