11cb0ef41Sopenharmony_ci// Flags: --experimental-loader ./test/fixtures/es-module-loaders/hooks-custom.mjs 21cb0ef41Sopenharmony_ciimport { mustCall } from '../common/index.mjs'; 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconst done = mustCall(); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci// Test that the process doesn't exit because of a caught exception thrown as part of dynamic import(). 81cb0ef41Sopenharmony_cifor (let i = 0; i < 10; i++) { 91cb0ef41Sopenharmony_ci await import('nonexistent/file.mjs').catch(() => {}); 101cb0ef41Sopenharmony_ci} 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_cidone(); 13