workaround stack overflow in ChakraCore (#3101)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 26 Apr 2018 07:02:17 +0000 (15:02 +0800)
committerGitHub <noreply@github.com>
Thu, 26 Apr 2018 07:02:17 +0000 (15:02 +0800)
test/mocha/parentheses.js

index a3ef860..7646e28 100644 (file)
@@ -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, {