fix corner case in hoist_props (#5442)

fixes #5441
This commit is contained in:
Alex Lam S.L
2022-05-15 23:49:09 +01:00
committed by GitHub
parent e31bbe329a
commit 7db2ada880
3 changed files with 41 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ hoist_props_const: {
}
}
expect: {
var o = 0, o_p = "PASS";
var o, o_p = "PASS";
console.log(o_p);
}
expect_stdout: "PASS"