From 0b8c543c18d6188aae3e44ae9a9c38df5813e34f Mon Sep 17 00:00:00 2001 From: aryung chen Date: Wed, 22 Nov 2017 16:17:41 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection PR-URL: https://github.com/nodejs/node/pull/17221 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/async-hooks/test-promise.chain-promise-before-init-hooks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/async-hooks/test-promise.chain-promise-before-init-hooks.js b/test/async-hooks/test-promise.chain-promise-before-init-hooks.js index 2bbc8d773b2336..00b53300c4d727 100644 --- a/test/async-hooks/test-promise.chain-promise-before-init-hooks.js +++ b/test/async-hooks/test-promise.chain-promise-before-init-hooks.js @@ -4,6 +4,7 @@ const common = require('../common'); const assert = require('assert'); const initHooks = require('./init-hooks'); const { checkInvocations } = require('./hook-checks'); +common.crashOnUnhandledRejection(); const p = new Promise(common.mustCall(function executor(resolve, reject) { resolve(5);