From 039fc8f946a3b8d87434e7ce80166bddad5b2227 Mon Sep 17 00:00:00 2001 From: Whien Date: Wed, 22 Nov 2017 16:34:04 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection Add common.crashOnUnhandledRejection to test-microtask-queue-run-immediate.js PR-URL: https://github.com/nodejs/node/pull/17214 Reviewed-By: Myles Borins Reviewed-By: Daniel Bevenius Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-microtask-queue-run-immediate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-microtask-queue-run-immediate.js b/test/parallel/test-microtask-queue-run-immediate.js index 4d998cf0b8a59c..1e26f4beebfbe4 100644 --- a/test/parallel/test-microtask-queue-run-immediate.js +++ b/test/parallel/test-microtask-queue-run-immediate.js @@ -20,9 +20,11 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); +common.crashOnUnhandledRejection(); + function enqueueMicrotask(fn) { Promise.resolve().then(fn); }