fix corner cases in unused & varify (#4368)

fixes #4365
This commit is contained in:
Alex Lam S.L
2020-12-11 20:45:35 +00:00
committed by GitHub
parent 4fdec765bc
commit 58dff9ada3
2 changed files with 29 additions and 1 deletions

View File

@@ -7284,7 +7284,7 @@ merge(Compressor.prototype, {
});
function is_safe_lexical(def) {
return def.orig.length < (def.orig[0] instanceof AST_SymbolLambda ? 3 : 2);
return def.name != "arguments" && def.orig.length < (def.orig[0] instanceof AST_SymbolLambda ? 3 : 2);
}
function may_overlap(compressor, def) {