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:
Andy Chen
2017-11-22 16:28:14 +08:00
committed by Gibson Fahnestock
parent e07c200d24
commit 0fb5d27496

View File

@@ -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(),