aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index e66331d4..504bf39b 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -7041,7 +7041,7 @@ merge(Compressor.prototype, {
&& fn.is_constant_expression(find_scope(compressor)))
&& (value = can_flatten_body(stat))
&& !fn.contains_this()) {
- var replacing = exp === fn || compressor.option("unused") && def.references.length - def.replaced == 1;
+ var replacing = exp === fn || def.single_use && def.references.length - def.replaced == 1;
if (can_substitute_directly()) {
var args = self.args.slice();
var refs = [];