Files
Kmake/test/parallel/test-promise-handled-rejection-no-warning.js
2026-05-26 23:36:42 -07:00

8 lines
258 B
JavaScript

'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());