clarify corner case in object literal (#4371)

closes #4366
This commit is contained in:
Alex Lam S.L
2020-12-11 23:42:29 +00:00
committed by GitHub
parent fd0d28e465
commit 8c000033d3
3 changed files with 75 additions and 3 deletions

View File

@@ -1375,3 +1375,27 @@ issue_4051: {
}
expect_stdout: "PASS"
}
issue_4366: {
options = {
dead_code: true,
}
input: {
function f() {
return "PASS";
({
p: 42,
get p() {},
});
}
console.log(f());
}
expect: {
function f() {
return "PASS";
}
console.log(f());
}
expect_stdout: "PASS"
node_version: ">=4"
}