From 9bf2da342968de4a09dc768eb3c1258252234561 Mon Sep 17 00:00:00 2001 From: Roth Peng Date: Wed, 22 Nov 2017 16:49:15 +0800 Subject: [PATCH] test: use crashOnUnhandledRejection Add common.crashOnUnhandledRejection to test/parallell/test-microtask-queue-run-domain.js PR-URL: https://github.com/nodejs/node/pull/17226 Reviewed-By: Myles Borins Reviewed-By: Gireesh Punathil Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-microtask-queue-run-domain.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-microtask-queue-run-domain.js b/test/parallel/test-microtask-queue-run-domain.js index 39baf930232411..a895504fc2972a 100644 --- a/test/parallel/test-microtask-queue-run-domain.js +++ b/test/parallel/test-microtask-queue-run-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,8 @@ const assert = require('assert'); // removed. require('domain'); +common.crashOnUnhandledRejection(); + function enqueueMicrotask(fn) { Promise.resolve().then(fn); }