mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
9 lines
301 B
JavaScript
9 lines
301 B
JavaScript
|
'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());
|