From 2aeb025999f32429494aa0e334a4971ee46cfdbb Mon Sep 17 00:00:00 2001 From: Sho Miyamoto Date: Sat, 13 Jan 2018 14:50:03 -0800 Subject: [PATCH] test: add common.crashOnUnhandledRejection to addons/callback-scope PR-URL: https://github.com/nodejs/node/pull/18076 Reviewed-By: Anna Henningsen Reviewed-By: Yuta Hiroto Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Tiancheng "Timothy" Gu --- test/addons/callback-scope/test-resolve-async.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/addons/callback-scope/test-resolve-async.js b/test/addons/callback-scope/test-resolve-async.js index 98e1910b49df7b..3e96234787c7b3 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; });