From 305a4bdceef9183561f3145fe60c80c4e76d752a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 23 Sep 2020 09:34:22 +0100 Subject: minor clean up (#4148) --- lib/compress.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) || []; -- cgit v1.2.3