test: use common.crashOnUnhandledRejection

Add common.crashOnUnhandledRejection to path:
  - test/parallel/test-microtask-queue-run-immediate-domain.js

PR-URL: https://github.com/nodejs/node/pull/17235
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:
Kcin1993 2017-11-22 17:00:31 +08:00 committed by Myles Borins
parent bce5cba43e
commit e4f5c63a6b
No known key found for this signature in database
GPG Key ID: 933B01F40B5CA946

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