@@ -1559,7 +1559,10 @@ Compressor.prototype.compress = function(node) {
|
||||
|
||||
AST_SymbolRef.DEFMETHOD("is_immutable", function() {
|
||||
var def = this.redef || this.definition();
|
||||
return (this.in_arg || def.orig.length == 1) && def.orig[0] instanceof AST_SymbolLambda;
|
||||
if (!(def.orig[0] instanceof AST_SymbolLambda)) return false;
|
||||
if (def.orig.length == 1) return true;
|
||||
if (!this.in_arg) return false;
|
||||
return !(def.orig[1] instanceof AST_SymbolFunarg);
|
||||
});
|
||||
|
||||
AST_Node.DEFMETHOD("convert_symbol", noop);
|
||||
|
||||
Reference in New Issue
Block a user