Permalink
Browse files

test: use crashOnUnhandledRejection

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

PR-URL: #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>
  • Loading branch information...
roth1002 authored and MylesBorins committed Nov 22, 2017
1 parent d4a5499 commit 6620e761d7913e5df3d7e1c242634cfa8bd2be88
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/parallel/test-microtask-queue-run-domain.js
@@ -1,5 +1,5 @@
'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
@@ -9,6 +9,8 @@ const assert = require('assert');
// removed.
require('domain');
common.crashOnUnhandledRejection();
function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}

0 comments on commit 6620e76

Please sign in to comment.