test: use common.crashOnUnhandledRejection

Add common.crashOnUnhandledRejection to
test-async-wrap-promise-after-enabled.js

PR-URL: https://github.com/nodejs/node/pull/17231
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:
jimliu7434 2017-11-22 16:45:34 +08:00 committed by James M Snell
parent 1cc8ec3adb
commit 685abcde0e

View File

@ -9,6 +9,8 @@ const async_hooks = require('async_hooks');
const seenEvents = [];
common.crashOnUnhandledRejection();
const p = new Promise((resolve) => resolve(1));
p.then(() => seenEvents.push('then'));