fix corner case in objects (#4416)

fixes #4415
This commit is contained in:
Alex Lam S.L
2020-12-19 16:14:57 +00:00
committed by GitHub
parent 9a5aede941
commit acc2d7d845
2 changed files with 20 additions and 1 deletions

View File

@@ -413,3 +413,22 @@ issue_4380: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_4415: {
options = {
evaluate: true,
objects: true,
}
input: {
console.log({
["00"]: "FAIL",
}[0] || "PASS");
}
expect: {
console.log({
"00": "FAIL",
}[0] || "PASS");
}
expect_stdout: "PASS"
node_version: ">=4"
}