Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
PR-URL: #17215
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
sj82516 authored and MylesBorins committed Nov 26, 2017
1 parent 3a4fe77 commit 7518617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-microtask-queue-integration-domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,6 +30,8 @@ const assert = require('assert');
// removed.
require('domain');

common.crashOnUnhandledRejection();

const implementations = [
function(fn) {
Promise.resolve().then(fn);
Expand Down

0 comments on commit 7518617

Please sign in to comment.