fix corner case in collapse_vars (#3521)

fixes #3520
This commit is contained in:
Alex Lam S.L
2019-10-24 01:13:57 +08:00
committed by GitHub
parent 370c8e0385
commit 0f7aa41e33
3 changed files with 43 additions and 4 deletions

View File

@@ -2121,7 +2121,8 @@ issue_3515_1: {
expect: {
var c = 0;
(function() {
for (var key20 in !(this[c++] = 0));
this[c++] = 0;
for (var key20 in !0);
})();
console.log(c);
}