if (!non_converting_binary[this.operator]) depth++;
var left = this.left._eval(compressor, cached, depth);
if (left === this.left) return this;
+ if (this.operator == (left ? "||" : "&&")) return left;
var right = this.right._eval(compressor, cached, depth);
if (right === this.right) return this;
var result;
cached.push(node);
});
});
- return stat.value ? stat.value._eval(compressor, cached, depth) : undefined;
+ if (!stat.value) return undefined;
+ var val = stat.value._eval(compressor, cached, depth);
+ if (val === stat.value) return this;
+ return val;
} else if (compressor.option("unsafe") && exp instanceof AST_PropAccess) {
var key = exp.property;
if (key instanceof AST_Node) {