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:
parent
1cc8ec3adb
commit
685abcde0e
@ -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'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user