@@ -5431,22 +5431,25 @@ Compressor.prototype.compress = function(node) {
|
||||
}
|
||||
}
|
||||
def(AST_SymbolRef, function(compressor, ignore_side_effects, cached, depth) {
|
||||
var fixed = this.fixed_value();
|
||||
if (!fixed) return this;
|
||||
var value;
|
||||
if (HOP(fixed, "_eval")) {
|
||||
value = fixed._eval();
|
||||
} else {
|
||||
this._eval = return_this;
|
||||
value = fixed._eval(compressor, ignore_side_effects, cached, depth);
|
||||
this._eval = return_this;
|
||||
try {
|
||||
var fixed = this.fixed_value();
|
||||
if (!fixed) return this;
|
||||
var value;
|
||||
if (HOP(fixed, "_eval")) {
|
||||
value = fixed._eval();
|
||||
} else {
|
||||
value = fixed._eval(compressor, ignore_side_effects, cached, depth);
|
||||
if (value === fixed) return this;
|
||||
fixed._eval = function() {
|
||||
return value;
|
||||
};
|
||||
cached.push(fixed);
|
||||
}
|
||||
return value && typeof value == "object" && !verify_escaped(this, depth) ? this : value;
|
||||
} finally {
|
||||
delete this._eval;
|
||||
if (value === fixed) return this;
|
||||
fixed._eval = function() {
|
||||
return value;
|
||||
};
|
||||
cached.push(fixed);
|
||||
}
|
||||
return value && typeof value == "object" && !verify_escaped(this, depth) ? this : value;
|
||||
});
|
||||
var global_objs = {
|
||||
Array: Array,
|
||||
|
||||
Reference in New Issue
Block a user