From 0a79496e0a2b0fb7739fc757e4e33d652694a6b5 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 26 Apr 2018 15:02:17 +0800 Subject: [PATCH] workaround stack overflow in ChakraCore (#3101) --- 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, { -- 2.34.1