From: Alex Lam S.L Date: Thu, 26 Apr 2018 07:02:17 +0000 (+0800) Subject: workaround stack overflow in ChakraCore (#3101) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0a79496e0a2b0fb7739fc757e4e33d652694a6b5;p=UglifyJS.git workaround stack overflow in ChakraCore (#3101) --- 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, {