fix corner cases in assignments, reduce_vars & unused (#3950)
fixes #3949 fixes #3951
This commit is contained in:
@@ -808,9 +808,9 @@ issue_3795: {
|
||||
}
|
||||
expect: {
|
||||
var a = "FAIL", d = function() {
|
||||
if (a = 42, d) return -1;
|
||||
if (void 0) return -1;
|
||||
a = "PASS";
|
||||
}();
|
||||
}(a = 42);
|
||||
console.log(a, d);
|
||||
}
|
||||
expect_stdout: "PASS undefined"
|
||||
|
||||
Reference in New Issue
Block a user