1// Flags: --experimental-loader ./test/fixtures/es-module-loaders/hooks-custom.mjs 2import { mustCall } from '../common/index.mjs'; 3 4const done = mustCall(); 5 6 7// Test that the process doesn't exit because of a caught exception thrown as part of dynamic import(). 8for (let i = 0; i < 10; i++) { 9 await import('nonexistent/file.mjs').catch(() => {}); 10} 11 12done(); 13