mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
9e840deecc
- add test specific to the event loop - move parallel tests into es-module folder - refactor fixture to add braces for if blocks - use 'os' instead of 'fs' as placeholder - spelling PR-URL: https://github.com/nodejs/node/pull/46631 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
13 lines
361 B
JavaScript
13 lines
361 B
JavaScript
// Flags: --experimental-loader ./test/fixtures/es-module-loaders/hooks-custom.mjs
|
|
import { mustCall } from '../common/index.mjs';
|
|
|
|
const done = mustCall();
|
|
|
|
|
|
// Test that the process doesn't exit because of a caught exception thrown as part of dynamic import().
|
|
for (let i = 0; i < 10; i++) {
|
|
await import('nonexistent/file.mjs').catch(() => {});
|
|
}
|
|
|
|
done();
|