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