fix corner case in unused (#4850)

fixes #4849
This commit is contained in:
Alex Lam S.L
2021-04-07 23:31:15 +01:00
committed by GitHub
parent a37ca558dd
commit ebe4e1ad28
3 changed files with 26 additions and 2 deletions

View File

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