-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f5f827
commit e54cd4e
Showing
3 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
// Flags: --experimental-loader ./test/fixtures/es-module-loaders/hooks-custom.mjs | ||
import { mustCall } from '../common/index.mjs'; | ||
import assert from 'assert'; | ||
|
||
const done = mustCall(() => { assert.ok(true); }); | ||
const done = mustCall(); | ||
|
||
|
||
// Test that the process doesn't exit because of a caught exception thrown as part of dynamic import(). | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
for (let i = 0; i < 10; i++) { | ||
await import('nonexistent/file.mjs').catch(() => {}); | ||
} | ||
|
||
done(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
test/es-module/test-loaders-this-value-inside-hook-functions.mjs
This file was deleted.
Oops, something went wrong.