diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index 801cbaea..45db019b 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -5369,6 +5369,7 @@ merge(Compressor.prototype, { && !fn.contains_this() && can_inject_symbols()) { fn._squeezed = true; + if (exp !== fn) fn.parent_scope = exp.scope; return make_sequence(self, flatten_fn()).optimize(compressor); } if (compressor.option("side_effects") @@ -6382,6 +6383,7 @@ merge(Compressor.prototype, { } while (scope = scope.parent_scope); } } + if (single_use) fixed.parent_scope = self.scope; } if (single_use && fixed) { def.single_use = false; |