Skip to content

Commit 80973ec

Browse files
Sho MiyamotoMylesBorins
authored andcommitted
test: add common.crashOnUnhandledRejection to addons/callback-scope
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>
1 parent 5607f58 commit 80973ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/addons/callback-scope/test-resolve-async.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const common = require('../../common');
44
const assert = require('assert');
55
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);
66

7+
common.crashOnUnhandledRejection();
8+
79
let called = false;
810
testResolveAsync().then(() => { called = true; });
911

0 commit comments

Comments
 (0)