diff options
author | Larry Lu <pudding850806@gmail.com> | 2017-11-22 16:22:58 +0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-11-22 12:35:12 -0800 |
commit | 18cf0960eab834ed3a4ddef22a7e8b6dcecfc058 (patch) | |
tree | fb78b1f2fcafd734530df44b77ac8fe693e88f7d /test/parallel/test-async-hooks-promise-enable-disable.js | |
parent | e34ccebd2a76eaad2b250aff91cf31afcec61c37 (diff) | |
download | android-node-v8-18cf0960eab834ed3a4ddef22a7e8b6dcecfc058.tar.gz android-node-v8-18cf0960eab834ed3a4ddef22a7e8b6dcecfc058.tar.bz2 android-node-v8-18cf0960eab834ed3a4ddef22a7e8b6dcecfc058.zip |
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>
Diffstat (limited to 'test/parallel/test-async-hooks-promise-enable-disable.js')
-rw-r--r-- | test/parallel/test-async-hooks-promise-enable-disable.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-async-hooks-promise-enable-disable.js b/test/parallel/test-async-hooks-promise-enable-disable.js index 5d9abe0090..075b29e4e5 100644 --- a/test/parallel/test-async-hooks-promise-enable-disable.js +++ b/test/parallel/test-async-hooks-promise-enable-disable.js @@ -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) => { |