Skip to content

Commit 5125e6c

Browse files
LarryLuTWgibfahn
authored andcommitted
test: add test on unhandled rejection
PR-URL: #17228 Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0b8c543 commit 5125e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-async-hooks-promise-enable-disable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ let p_resource = null;
88
let p_er = null;
99
let p_inits = 0;
1010

11+
common.crashOnUnhandledRejection();
12+
1113
// Not useful to place common.mustCall() around 'exit' event b/c it won't be
1214
// able to check it anway.
1315
process.on('exit', (code) => {

0 commit comments

Comments
 (0)