test: add common.crashOnUnhandledRejection to addons/callback-scope
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
4d4ef147f7
commit
c84582cbb6
@ -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; });
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user