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...
shqld authored and TimothyGu committed Jan 13, 2018
1 parent 4d4ef14 commit c84582cbb6362fa8b2eb2d3bc153617fef2982d1
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 c84582c

Please sign in to comment.