mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: add common.crashOnUnhandledRejection()
added to test-async-hooks-enable-during-promise.js PR-URL: https://github.com/nodejs/node/pull/17234 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
Gibson Fahnestock
parent
e07c200d24
commit
0fb5d27496
@@ -2,6 +2,8 @@
|
||||
const common = require('../common');
|
||||
const async_hooks = require('async_hooks');
|
||||
|
||||
common.crashOnUnhandledRejection();
|
||||
|
||||
Promise.resolve(1).then(common.mustCall(() => {
|
||||
async_hooks.createHook({
|
||||
init: common.mustCall(),
|
||||
|
||||
Reference in New Issue
Block a user