@@ -3308,7 +3308,7 @@ merge(Compressor.prototype, {
|
|||||||
}
|
}
|
||||||
var op = this.operator;
|
var op = this.operator;
|
||||||
var node;
|
var node;
|
||||||
if (HOP(lhs, "_eval") || !(lhs instanceof AST_SymbolRef) || !lhs.fixed_value()) {
|
if (HOP(lhs, "_eval") || !(lhs instanceof AST_SymbolRef) || !lhs.fixed || !lhs.definition().fixed) {
|
||||||
node = op == "=" ? this.right : make_node(AST_Binary, this, {
|
node = op == "=" ? this.right : make_node(AST_Binary, this, {
|
||||||
operator: op.slice(0, -1),
|
operator: op.slice(0, -1),
|
||||||
left: lhs,
|
left: lhs,
|
||||||
|
|||||||
@@ -2690,3 +2690,32 @@ issue_3937: {
|
|||||||
}
|
}
|
||||||
expect_stdout: "124 124"
|
expect_stdout: "124 124"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_3944: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
evaluate: true,
|
||||||
|
inline: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
unused: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
(function() {
|
||||||
|
function f() {
|
||||||
|
while (function() {
|
||||||
|
var a = 0 == (b && b.p), b = console.log(a);
|
||||||
|
}());
|
||||||
|
f;
|
||||||
|
}
|
||||||
|
f();
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
void function f() {
|
||||||
|
while (a = 0 == (a = void 0), console.log(a), void 0);
|
||||||
|
var a;
|
||||||
|
f;
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
expect_stdout: "false"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user