Skip to content

Commit 2d2e780

Browse files
LarryLuTWMylesBorins
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 a536b03 commit 2d2e780

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

+2
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)