diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 7a6a0bcb..afb555f0 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -8295,7 +8295,7 @@ merge(Compressor.prototype, { if (has_arg_refs(argname)) return false; } return true; - }); + }) && !(fn.rest instanceof AST_Destructured && has_arg_refs(fn.rest)); var can_inline = can_drop && compressor.option("inline") && !self.is_expr_pure(compressor); if (can_inline && stat instanceof AST_Return) { var value = stat.value; |