blob: 14b06affb73825c403fd8029e3da300bac6c156f (
plain)
1
2
3
4
5
6
7
8
|
'use strict';
const common = require('../common');
// This test verifies that DEP0018 does not occur when rejections are handled.
common.disableCrashOnUnhandledRejection();
process.on('warning', common.mustNotCall());
process.on('unhandledRejection', common.mustCall());
Promise.reject(new Error());
|