aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-09-23 09:34:22 +0100
committerGitHub <noreply@github.com>2020-09-23 16:34:22 +0800
commit305a4bdceef9183561f3145fe60c80c4e76d752a (patch)
treee80bed1cd889c8cdda557f2c3dee4f19142e000e
parent3472cf1a908f516d1f2dd69b773abc61d7019b44 (diff)
downloadtracifyjs-305a4bdceef9183561f3145fe60c80c4e76d752a.tar.gz
tracifyjs-305a4bdceef9183561f3145fe60c80c4e76d752a.zip
minor clean up (#4148)
-rw-r--r--lib/compress.js3
1 files changed, 1 insertions, 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) || [];