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:
parent
339e247e3f
commit
1cc8ec3adb
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user