-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
module: clarify cjs global-like error on ModuleJobSync #56491
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
There is still one case that I think should be covered by this message highlighted by https://github.com/nodejs/node/blob/main/test/es-module/test-esm-detect-ambiguous.mjs#L212 where an |
For my own clarification: why am I tagged on this one? |
Not sure if I tagged wrong. I saw this repro on the nodejs loaders group https://github.com/jsumners-nr/exports-bug |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56491 +/- ##
==========================================
+ Coverage 89.20% 89.22% +0.01%
==========================================
Files 662 662
Lines 191934 191949 +15
Branches 36944 36951 +7
==========================================
+ Hits 171218 171261 +43
+ Misses 13552 13535 -17
+ Partials 7164 7153 -11
|
@jsumners you sort of requested this in slack about a month ago :) |
Thank you. Please tag |
I presume you're asking so it will give you a reminder (which it won't do when you tag yourself). @jsumners-nr :) |
I participate in the loaders group through my work persona. I will review when I am back at work tomorrow. Technically, I wouldn't be tagging myself since it is separate accounts. I'm really just trying to make it clear which account to use for these things. |
Can we move this forward? @JakobJingleheimer |
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.
Looks good to me.
I was out all last week due to illness. |
This comment was marked as outdated.
This comment was marked as outdated.
You can remove the TODO in L395 now because that's talking about...this :) The other TODO relies on the V8 13.0 upgrade which is blocked on...the macOS upgrade in the CI, sigh. |
It seems the two failing test are because |
Those two came from security release hiccups and should be fixed by 01dd7c4 - not sure about whether the GitHub actions are able to rebase. Can you rebase locally and force push here? |
c05d02a
to
2b6cb3f
Compare
Done |
This PR copies the error message used for cjs global-like import errors from
ModuleJob
toModuleJobSync
to cover more cases.