Skip to content

Commit

Permalink
test: use common.crashOnUnhandledRejection
Browse files Browse the repository at this point in the history
PR-URL: #17221
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aryung authored and MylesBorins committed Dec 12, 2017
1 parent 2010b80 commit a536b03
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const common = require('../common');
const assert = require('assert');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');
common.crashOnUnhandledRejection();

const p = new Promise(common.mustCall(function executor(resolve, reject) {
resolve(5);
Expand Down

0 comments on commit a536b03

Please sign in to comment.