diff options
author | Andy Chen <w5151381guy@gmail.com> | 2017-11-22 16:28:14 +0800 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-11-26 15:47:10 +0900 |
commit | bce5cba43e96da0a9ccd4b90cd94489304d885ec (patch) | |
tree | 50f09bf99b64ee1e06a6b2b3f3aea1a14e2059e7 /test | |
parent | 75186175ffce64e557c2063275f00425282befcd (diff) | |
download | android-node-v8-bce5cba43e96da0a9ccd4b90cd94489304d885ec.tar.gz android-node-v8-bce5cba43e96da0a9ccd4b90cd94489304d885ec.tar.bz2 android-node-v8-bce5cba43e96da0a9ccd4b90cd94489304d885ec.zip |
test: add common.crashOnUnhandledRejection()
added to test-async-hooks-enable-during-promise.js
PR-URL: https://github.com/nodejs/node/pull/17234
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')
-rw-r--r-- | test/parallel/test-async-hooks-enable-during-promise.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-async-hooks-enable-during-promise.js b/test/parallel/test-async-hooks-enable-during-promise.js index 106f433322..17b3c884bb 100644 --- a/test/parallel/test-async-hooks-enable-during-promise.js +++ b/test/parallel/test-async-hooks-enable-during-promise.js @@ -2,6 +2,8 @@ const common = require('../common'); const async_hooks = require('async_hooks'); +common.crashOnUnhandledRejection(); + Promise.resolve(1).then(common.mustCall(() => { async_hooks.createHook({ init: common.mustCall(), |