★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/2aeb025999Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
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>
  • Loading branch information
Sho Miyamoto authored and evanlucas committed Jan 30, 2018
1 parent f8f809b commit 2aeb025999f32429494aa0e334a4971ee46cfdbb
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/addons/callback-scope/test-resolve-async.js
@@ -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; });

0 comments on commit 2aeb025

Please sign in to comment.