aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/parallel/test-microtask-queue-run-domain.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-microtask-queue-run-domain.js b/test/parallel/test-microtask-queue-run-domain.js
index 39baf93023..a895504fc2 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);
}