@@ -1982,6 +1982,7 @@ merge(Compressor.prototype, {
|
|||||||
force_single = true;
|
force_single = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (replaced == assign_pos) assign_used = true;
|
||||||
var def = lhs.definition();
|
var def = lhs.definition();
|
||||||
abort = false;
|
abort = false;
|
||||||
hit_index = 0;
|
hit_index = 0;
|
||||||
|
|||||||
@@ -9220,3 +9220,28 @@ issue_4920: {
|
|||||||
}
|
}
|
||||||
expect_stdout: "PASS"
|
expect_stdout: "PASS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
issue_4935: {
|
||||||
|
options = {
|
||||||
|
collapse_vars: true,
|
||||||
|
reduce_vars: true,
|
||||||
|
toplevel: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
var a = 1;
|
||||||
|
var b;
|
||||||
|
var c = b = a;
|
||||||
|
console || c(a++);
|
||||||
|
--b;
|
||||||
|
console.log(a, b);
|
||||||
|
}
|
||||||
|
expect: {
|
||||||
|
var a = 1;
|
||||||
|
var b;
|
||||||
|
var c = b = a;
|
||||||
|
console || a(a++);
|
||||||
|
--b;
|
||||||
|
console.log(a, b);
|
||||||
|
}
|
||||||
|
expect_stdout: "1 0"
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user