From b63f51aa7ff742ae990d67b90196b1346b935a98 Mon Sep 17 00:00:00 2001 From: zhengyuanjie Date: Thu, 23 Nov 2017 10:24:38 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17215 Reviewed-By: Myles Borins Reviewed-By: Daniel Bevenius Reviewed-By: Michaƫl Zasso --- test/parallel/test-microtask-queue-integration-domain.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-microtask-queue-integration-domain.js b/test/parallel/test-microtask-queue-integration-domain.js index df90b6d3a372da..fab1e378d9a4b0 100644 --- a/test/parallel/test-microtask-queue-integration-domain.js +++ b/test/parallel/test-microtask-queue-integration-domain.js @@ -1,5 +1,5 @@ '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 @@ -9,6 +9,8 @@ const assert = require('assert'); // removed. require('domain'); +common.crashOnUnhandledRejection(); + const implementations = [ function(fn) { Promise.resolve().then(fn);