From: Alex Lam S.L Date: Wed, 23 Sep 2020 08:34:22 +0000 (+0100) Subject: minor clean up (#4148) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=305a4bdceef9183561f3145fe60c80c4e76d752a;p=UglifyJS.git minor clean up (#4148) --- diff --git a/lib/compress.js b/lib/compress.js index 7b8c4c1e..883345b6 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4536,7 +4536,6 @@ merge(Compressor.prototype, { } function mark(sym, read, write) { - if (sym.name == "arguments") return; var def = sym.definition(); if (def.id in references) { var refs = references[def.id]; @@ -4551,7 +4550,7 @@ merge(Compressor.prototype, { } else if (!read) { return; } - } else if (self.variables.get(def.name) !== def || compressor.exposed(def)) { + } else if (self.variables.get(def.name) !== def || compressor.exposed(def) || sym.name == "arguments") { return references[def.id] = false; } else { var refs = declarations.get(def.id) || [];