Permalink
Browse files

test: use common.crashOnUnhandledRejection()

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

PR-URL: #17232
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>
  • Loading branch information...
sorarize authored and MylesBorins committed Nov 22, 2017
1 parent 89f1b6c commit 699659e5df403e13555c53a8871eceb8755fa2b8
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/parallel/test-microtask-queue-run.js
@@ -1,7 +1,9 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
common.crashOnUnhandledRejection();
function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}

0 comments on commit 699659e

Please sign in to comment.