aboutsummaryrefslogtreecommitdiff
path: root/test/addons/callback-scope
diff options
context:
space:
mode:
authorSho Miyamoto <shqld8@gmail.com>2018-01-13 14:50:03 -0800
committerTimothy Gu <timothygu99@gmail.com>2018-01-13 14:50:30 -0800
commitc84582cbb6362fa8b2eb2d3bc153617fef2982d1 (patch)
treec7ded185dd446b73c1517294585f469e82eebf45 /test/addons/callback-scope
parent4d4ef147f71c74cd0f6dbd1c1a95a3ee6f9ca93e (diff)
downloadandroid-node-v8-c84582cbb6362fa8b2eb2d3bc153617fef2982d1.tar.gz
android-node-v8-c84582cbb6362fa8b2eb2d3bc153617fef2982d1.tar.bz2
android-node-v8-c84582cbb6362fa8b2eb2d3bc153617fef2982d1.zip
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>
Diffstat (limited to 'test/addons/callback-scope')
-rw-r--r--test/addons/callback-scope/test-resolve-async.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/addons/callback-scope/test-resolve-async.js b/test/addons/callback-scope/test-resolve-async.js
index 98e1910b49..3e96234787 100644
--- a/test/addons/callback-scope/test-resolve-async.js
+++ b/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; });