enhance mangle (#4926)

This commit is contained in:
Alex Lam S.L
2021-05-11 16:41:32 +01:00
committed by GitHub
parent ae51f76ba7
commit 689f8f504d
2 changed files with 8 additions and 11 deletions

View File

@@ -7,11 +7,11 @@ describe("let", function() {
// Produce a lot of variables in a function and run it through mangle.
var s = '"dddddeeeeelllllooooottttt"; function foo() {';
for (var i = 0; i < 18000; i++) {
s += "var v" + i + "=0;";
s += "var v" + i + "=[];";
}
s += '}';
var result = UglifyJS.minify(s, {
compress: false
compress: false,
}).code;
// Verify that select keywords and reserved keywords not produced