-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
esm: implement import.meta.main #57804
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: implement import.meta.main #57804
Conversation
|
Review requested:
|
135a7a1 to
f31d130
Compare
|
@ljharb I would appreciate your review on this r.e. performance - I am particularly concerned about my changes in lib/internal/modules/esm/translators.js, since I'm not familiar with implications of assignment to a JS object associated with a native object. |
5452731 to
b677069
Compare
6bdcad8 to
6613f1d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57804 +/- ##
==========================================
- Coverage 90.23% 90.22% -0.02%
==========================================
Files 633 633
Lines 186818 186844 +26
Branches 36668 36682 +14
==========================================
- Hits 168578 168575 -3
- Misses 11036 11045 +9
- Partials 7204 7224 +20
🚀 New features to boost your workflow:
|
c4619a4 to
eb4e8a7
Compare
|
@ljharb I've moved the assignment into I think I can see where the cache is populated, but not where it is hit in What am I missing? |
|
I think CI should pass now. |
|
I checked locally, it seems the test no longer fails with unusual character names using a relative import path. |
mcollina
left a comment
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
|
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
|
There's a test for |
There is:
But it would still be nice to cover more cases, e.g.:
|
|
|
|
@aduh95 I'm happy to do the work for the v22 backport. Is there a section of the contributing docs I should look at for guidance? |
|
There's
|
Implements #57226
This PR supersedes #32223
Fixes: #57226