stat.alternative = make_node(AST_BlockStatement, stat, {
body: body
});
+ statements[i] = stat;
statements[i] = stat.transform(compressor);
continue;
}
stat.condition = negated;
statements[j] = stat.body;
stat.body = next;
+ statements[i] = stat;
statements[i] = stat.transform(compressor);
continue;
}
stat.alternative = make_node(AST_BlockStatement, stat.alternative, {
body: body
});
+ statements[i] = stat;
statements[i] = stat.transform(compressor);
continue;
}
"PASS",
]
}
+
+issue_3600: {
+ options = {
+ if_return: true,
+ inline: true,
+ side_effects: true,
+ unused: true,
+ }
+ input: {
+ var c = 0;
+ (function() {
+ if ([ ][c++]); else return;
+ return void function() {
+ var b = --b, a = c = 42;
+ return c;
+ }();
+ })();
+ console.log(c);
+ }
+ expect: {
+ var c = 0;
+ (function() {
+ if ([][c++]) b = --b, c = 42;
+ var b;
+ })();
+ console.log(c);
+ }
+ expect_stdout: "1"
+}