diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/compress.js b/lib/compress.js index adc894f2..767d5f9c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4413,12 +4413,9 @@ merge(Compressor.prototype, { if (node instanceof AST_Scope) { push(); segment.block = node; - if (node instanceof AST_Lambda) { - if (node.name) { - if (node !== self) segment.loop = true; - references[node.name.definition().id] = false; - } - references[node.variables.get("arguments").id] = false; + if (node instanceof AST_Lambda && node.name) { + if (node !== self) segment.loop = true; + references[node.name.definition().id] = false; } descend(); pop(); @@ -4538,6 +4535,7 @@ 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]; |