fix corner case in pure_getters (#4449)

fixes #4448
This commit is contained in:
Alex Lam S.L
2020-12-24 19:58:23 +00:00
committed by GitHub
parent 1896694532
commit dfc3ec9cef
2 changed files with 30 additions and 0 deletions

View File

@@ -358,6 +358,7 @@ merge(Compressor.prototype, {
function is_arguments(def) {
if (def.name != "arguments") return false;
if (!def.scope.uses_arguments) return false;
var orig = def.orig;
return orig.length == 1 && orig[0] instanceof AST_SymbolFunarg;
}