-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[v8.x] lib: refactor ES module loader for readability #18085
Conversation
Ran this locally and got:
CI to check: |
Rerun to check it's still not working: https://ci.nodejs.org/job/node-test-pull-request/13776/ Also ping @addaleax 😁 |
lib/internal/loader/ModuleJob.js
Outdated
@@ -1,91 +1,93 @@ | |||
'use strict'; | |||
|
|||
const { ModuleWrap } = internalBinding('module_wrap'); |
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.
This should be const { ModuleWrap } = require('internal/process').internalBinding('module_wrap');
ping @addaleax |
sorry for dropping the ball on this, i’ll get to it as soon as i have time (which is the case for basically all my open prs – not that i don’t appreciate pings). if this is urgent for anybody, feel free to just push to this branch and kick off ci. i, however, am going to sleep now. night everyone! |
@addaleax just pinging as a reflex, lmk if you would prefer I hold off on pinging you for a minute |
44cb0d3
to
16bf5fe
Compare
I've pushed up the internalBinding fix here, and run a new CI job - https://ci.nodejs.org/job/node-test-pull-request/14040/. Updated CI: https://ci.nodejs.org/job/node-test-pull-request/14136/ |
Note - CI here is now passing, although there seem to be some unrelated CI failures. |
Just to check, this would be semver-major as it adds a new Error message, but ESM is still experimental. Is that correct? |
PR-URL: #16579 Backport-PR-URL: #18085 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in 2019b02 Thanks for fixing this up @guybedford ! |
PR-URL: #16579
Only merge conflict was in
errors.md