Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
esm: restore next<HookName>'s context as optional arg#43553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esm: restore next<HookName>'s context as optional arg #43553
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Jun 23, 2022
Review requested:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,3 @@ | |||
| exportasyncfunctionload(specifier,context,next){ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also have a test for when the return value is null instead of Promise<null>?
| exportasyncfunctionload(specifier,context,next){ | |
| exportfunctionload(specifier,context,next){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Will do tomorrow (alternatively in the tidy follow-up I'm about to do)
PS gaah, yah killin me with the drip-feeding 😜
aduh95 left a comment • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming #43558 fixes the failing test
4227327 to 1f380d1Compare1f380d1 to cb738d6Comparenodejs-github-bot commented Jul 1, 2022
nodejs-github-bot commented Jul 1, 2022
nodejs-github-bot commented Jul 2, 2022
nodejs-github-bot commented Jul 2, 2022
nodejs-github-bot commented Jul 2, 2022
Landed in 1f6d005 |
PR-URL: #43553 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #43553 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #43553 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs/node#43553 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
This PR ports some internal code improvements otherwise lost when #43363 was reverted. It also contains a small bugfix wherein the
contextargument ofnext<HookName>()(ordefault<HookName>()prior to chaining) was actually optional.