Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
Add common.crashOnUnhandledRejection to
test-microtask-queue-run-immediate.js

PR-URL: #17214
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
madeinfree authored and MylesBorins committed Dec 11, 2017
1 parent 56444c2 commit 039fc8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-microtask-queue-run-immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');

common.crashOnUnhandledRejection();

function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}
Expand Down

0 comments on commit 039fc8f

Please sign in to comment.