fix corner case in reduce_vars (#5121)

fixes #5120
This commit is contained in:
Alex Lam S.L
2021-08-25 03:39:35 +01:00
committed by GitHub
parent db94d21980
commit c3aef23614
3 changed files with 41 additions and 13 deletions

View File

@@ -99,8 +99,8 @@ issue_4664: {
expect: {
(function f() {
new function(a) {
console.log(typeof f, 1073741824, typeof this);
}(A = 0);
console.log(typeof f, a, typeof this);
}((A = 0, 2 ** 30));
})();
}
expect_stdout: "function 1073741824 object"