blob: d48fbbe7f45246792d84edf6214f1df6e269bf65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Flags: --no-harmony-top-level-await
import {
mustCall,
disableCrashOnUnhandledRejection
} from '../common/index.mjs';
disableCrashOnUnhandledRejection();
process.on('unhandledRejection', mustCall());
Promise.reject(new Error('should not be fatal error'));
|