From 07547346a80b2d606ec3a3533eb8e13b027a53e0 Mon Sep 17 00:00:00 2001 From: IHsuan Date: Wed, 22 Nov 2017 16:39:05 +0800 Subject: [PATCH] test: add common.crashOnUnhandledRejection() PR-URL: https://github.com/nodejs/node/pull/17247 Reviewed-By: James M Snell Reviewed-By: Jon Moss Reviewed-By: Anna Henningsen --- test/addons/make-callback-recurse/test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/addons/make-callback-recurse/test.js b/test/addons/make-callback-recurse/test.js index 77815e052ab1f9..222a81b06b87eb 100644 --- a/test/addons/make-callback-recurse/test.js +++ b/test/addons/make-callback-recurse/test.js @@ -9,6 +9,7 @@ const makeCallback = binding.makeCallback; // Make sure this is run in the future. const mustCallCheckDomains = common.mustCall(checkDomains); +common.crashOnUnhandledRejection(); // Make sure that using MakeCallback allows the error to propagate. assert.throws(function() {