d.assignments++;
var fixed = d.fixed;
if (safe_to_read(tw, d) && safe_to_assign(tw, d)) {
+ if (d.single_use) d.single_use = false;
push_ref(d, exp);
mark(tw, d);
d.fixed = function() {
}
expect_stdout: "1"
}
+
+issue_4019: {
+ options = {
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ mangle = {
+ ie8: true,
+ toplevel: true,
+ }
+ input: {
+ var a = function() {
+ try {
+ console.log("FAIL");
+ } catch (b) {}
+ }, a = (console.log(a.length), ++a);
+ }
+ expect: {
+ var o = function() {
+ try {
+ console.log("FAIL");
+ } catch (o) {}
+ }, o = (console.log(o.length), ++o);
+ }
+ expect_stdout: "0"
+}