test: use common.crashOnUnhandledRejection()

Add common.crashOnUnhandledRejection to
test/parallel/test-microtask-queue-run.js

PR-URL: https://github.com/nodejs/node/pull/17232
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
sorarize@gmail.com authored and Myles Borins committed 2017-12-19 16:18:21 -05:00
1 parent 89f1b6c041
commit 699659e5df
1 file changed
+3 -1
+3 -1
View File
@@ -1,7 +1,9 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
common.crashOnUnhandledRejection();
function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}