From d47c150a83249f9fa029b0151c7c7a582aaf0a27 Mon Sep 17 00:00:00 2001 From: zhengyuanjie Date: Thu, 23 Nov 2017 10:24:38 +0800 Subject: [PATCH] remove extra instructions. reset the commit to remvoe extra instructions. --- test/parallel/test-microtask-queue-integration-domain.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-microtask-queue-integration-domain.js b/test/parallel/test-microtask-queue-integration-domain.js index 98da703ee51429..8f9bd45946107e 100644 --- a/test/parallel/test-microtask-queue-integration-domain.js +++ b/test/parallel/test-microtask-queue-integration-domain.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); // Requiring the domain module here changes the function that is used by node to @@ -30,6 +30,9 @@ const assert = require('assert'); // removed. require('domain'); +// add crash handler for unhandled rejection +common.crashOnUnhandledRejection(); + const implementations = [ function(fn) { Promise.resolve().then(fn);