Skip to content

Commit

Permalink
test: add common.crashOnUnhandledRejection to addons/callback-scope
Browse files Browse the repository at this point in the history
PR-URL: #18076
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
  • Loading branch information
Sho Miyamoto authored and MylesBorins committed Feb 27, 2018
1 parent 5607f58 commit 80973ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/addons/callback-scope/test-resolve-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const common = require('../../common');
const assert = require('assert');
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);

common.crashOnUnhandledRejection();

let called = false;
testResolveAsync().then(() => { called = true; });

Expand Down

0 comments on commit 80973ec

Please sign in to comment.