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 <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
  • Loading branch information
Sho Miyamoto authored and evanlucas committed Jan 30, 2018
1 parent f8f809b commit 2aeb025
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 2aeb025

Please sign in to comment.