Skip to content

Commit

Permalink
test: add common.crashOnUnhandledRejection()
Browse files Browse the repository at this point in the history
added to test-async-hooks-enable-during-promise.js

PR-URL: #17234
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
w5151381guy authored and MylesBorins committed Dec 12, 2017
1 parent c375816 commit 497195a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-async-hooks-enable-during-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
const common = require('../common');
const async_hooks = require('async_hooks');

common.crashOnUnhandledRejection();

Promise.resolve(1).then(common.mustCall(() => {
async_hooks.createHook({
init: common.mustCall(),
Expand Down

0 comments on commit 497195a

Please sign in to comment.