-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
esm: link modules synchronously when no async loader hooks are used #59519
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ async function test() { | |
|
||
await rejects( | ||
import(jsModuleDataUrl, { with: { type: 'json', other: 'unsupported' } }), | ||
{ code: 'ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE' } | ||
{ code: 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED' } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should've been |
||
); | ||
|
||
await rejects( | ||
|
@@ -48,7 +48,7 @@ async function test() { | |
|
||
await rejects( | ||
import(jsonModuleDataUrl, { with: { foo: 'bar' } }), | ||
{ code: 'ERR_IMPORT_ATTRIBUTE_MISSING' } | ||
{ code: 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED' } | ||
); | ||
|
||
await rejects( | ||
|
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.
This seems fine IMO, because there's no guarantee that the module would not get compiled twice - the real guarantee should be that the module would not get evaluated twice.