@@ -3373,15 +3373,18 @@ merge(Compressor.prototype, {
|
||||
var args = eval_args(this.args);
|
||||
if (!args) return this;
|
||||
if (!stat.value) return undefined;
|
||||
fn.argnames.forEach(function(sym, i) {
|
||||
if (!all(fn.argnames, function(sym, i) {
|
||||
var value = args[i];
|
||||
sym.definition().references.forEach(function(node) {
|
||||
var def = sym.definition();
|
||||
if (def.orig[def.orig.length - 1] !== sym) return false;
|
||||
def.references.forEach(function(node) {
|
||||
node._eval = function() {
|
||||
return value;
|
||||
};
|
||||
cached.push(node);
|
||||
});
|
||||
});
|
||||
return true;
|
||||
})) return this;
|
||||
fn.evaluating = true;
|
||||
var val = stat.value._eval(compressor, ignore_side_effects, cached, depth);
|
||||
delete fn.evaluating;
|
||||
|
||||
Reference in New Issue
Block a user