diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 4bc57012..fd0564cb 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -7700,6 +7700,7 @@ merge(Compressor.prototype, { def.references.push(name); } def.eliminated++; + def.single_use = false; return a; }, []); if (assignments.length == 0) return null; @@ -9702,7 +9703,8 @@ merge(Compressor.prototype, { } })); } else { - value = fixed.optimize(compressor).transform(new TreeTransformer(function(node, descend) { + value = fixed.optimize(compressor); + if (value === fixed) value = value.transform(new TreeTransformer(function(node, descend) { if (node instanceof AST_Scope) return node; node = node.clone(); descend(node, this); |