@@ -8295,7 +8295,7 @@ merge(Compressor.prototype, {
|
|||||||
if (has_arg_refs(argname)) return false;
|
if (has_arg_refs(argname)) return false;
|
||||||
}
|
}
|
||||||
return true;
|
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);
|
var can_inline = can_drop && compressor.option("inline") && !self.is_expr_pure(compressor);
|
||||||
if (can_inline && stat instanceof AST_Return) {
|
if (can_inline && stat instanceof AST_Return) {
|
||||||
var value = stat.value;
|
var value = stat.value;
|
||||||
|
|||||||
@@ -696,3 +696,21 @@ issue_4575: {
|
|||||||
expect_stdout: "PASS 0"
|
expect_stdout: "PASS 0"
|
||||||
node_version: ">=6"
|
node_version: ">=6"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4621: {
|
||||||
|
options = {
|
||||||
|
side_effects: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
(function f(a, ...{
|
||||||
|
[console.log(a)]: b,
|
||||||
|
}) {})("PASS");
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
(function f(a, ...{
|
||||||
|
[console.log(a)]: b,
|
||||||
|
}) {})("PASS");
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
|
node_version: ">=6"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user