From b748ade9b2633cc90edf5491511bff2b9a1c9a80 Mon Sep 17 00:00:00 2001 From: Jimmy Thomson Date: Tue, 12 Sep 2017 15:04:20 -0700 Subject: [PATCH] Fixing promise test to not require unhandled promise rejections --- test/parallel/test-promises-unhandled-proxy-rejections.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-promises-unhandled-proxy-rejections.js b/test/parallel/test-promises-unhandled-proxy-rejections.js index 91808af1458..a0f1a0f55a6 100644 --- a/test/parallel/test-promises-unhandled-proxy-rejections.js +++ b/test/parallel/test-promises-unhandled-proxy-rejections.js @@ -29,10 +29,12 @@ const thorny = new Proxy({}, { construct: throwErr }); +if (!common.isChakraEngine) { common.expectWarning({ DeprecationWarning: expectedDeprecationWarning, UnhandledPromiseRejectionWarning: expectedPromiseWarning, }); +} // ensure this doesn't crash Promise.reject(thorny);