From 222a89f4d40a46de7f550fff5cb0f2418e6c4492 Mon Sep 17 00:00:00 2001 From: aryung chen Date: Wed, 22 Nov 2017 16:17:41 +0800 Subject: [PATCH 1/2] first push common.crashUnhandleRejection() --- 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..505d85045fb491 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.crashOnUnhandleRejection(); const p = new Promise(common.mustCall(function executor(resolve, reject) { resolve(5); From fc8cc82433e0b7917ea28d197229eb54f685c75c Mon Sep 17 00:00:00 2001 From: aryung chen Date: Wed, 22 Nov 2017 16:35:13 +0800 Subject: [PATCH 2/2] fix typo --- .../async-hooks/test-promise.chain-promise-before-init-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 505d85045fb491..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,7 +4,7 @@ const common = require('../common'); const assert = require('assert'); const initHooks = require('./init-hooks'); const { checkInvocations } = require('./hook-checks'); -common.crashOnUnhandleRejection(); +common.crashOnUnhandledRejection(); const p = new Promise(common.mustCall(function executor(resolve, reject) { resolve(5);