fix cascade on anonymous function reference (#1693)
Unlike normal variables and even function definitions, these cannot be reassigned, even though assignment expressions would "leak" the assigned value as normal.
This commit is contained in:
@@ -2922,7 +2922,9 @@ merge(Compressor.prototype, {
|
||||
&& (self.car.operator == "++" || self.car.operator == "--")) {
|
||||
left = self.car.expression;
|
||||
}
|
||||
if (left) {
|
||||
if (left
|
||||
&& !(left instanceof AST_SymbolRef
|
||||
&& left.definition().orig[0] instanceof AST_SymbolLambda)) {
|
||||
var parent, field;
|
||||
var cdr = self.cdr;
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user