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 <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Roth Peng 2017-11-22 16:49:15 +08:00 committed by James M Snell
parent 339e247e3f
commit 1cc8ec3adb

View File

@ -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);
}