test: add test on unhandled rejection

PR-URL: https://github.com/nodejs/node/pull/17228
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:
Larry Lu 2017-11-22 16:22:58 +08:00 committed by James M Snell
parent e34ccebd2a
commit 18cf0960ea

View File

@ -8,6 +8,8 @@ let p_resource = null;
let p_er = null;
let p_inits = 0;
common.crashOnUnhandledRejection();
// Not useful to place common.mustCall() around 'exit' event b/c it won't be
// able to check it anway.
process.on('exit', (code) => {