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:
parent
e34ccebd2a
commit
18cf0960ea
@ -8,6 +8,8 @@ let p_resource = null;
|
|||||||
let p_er = null;
|
let p_er = null;
|
||||||
let p_inits = 0;
|
let p_inits = 0;
|
||||||
|
|
||||||
|
common.crashOnUnhandledRejection();
|
||||||
|
|
||||||
// Not useful to place common.mustCall() around 'exit' event b/c it won't be
|
// Not useful to place common.mustCall() around 'exit' event b/c it won't be
|
||||||
// able to check it anway.
|
// able to check it anway.
|
||||||
process.on('exit', (code) => {
|
process.on('exit', (code) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user