From 4fbd33167282357911c73d1a60a038e544ad2021 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Thu, 26 Apr 2018 14:08:15 +0800 Subject: [PATCH] workaround stack overflow in ChakraCore --- test/mocha/parentheses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mocha/parentheses.js b/test/mocha/parentheses.js index a3ef8604..7646e284 100644 --- a/test/mocha/parentheses.js +++ b/test/mocha/parentheses.js @@ -91,7 +91,7 @@ describe("parentheses", function() { "(function(){}).name;", ]; for (var i = 16; --i >= 0;) { - [].push.apply(code, code); + code = code.concat(code); } code = code.join(""); var result = uglify.minify(code, {