fix corner case in properties (#4889)

fixes #4888
This commit is contained in:
Alex Lam S.L
2021-05-01 00:52:53 +01:00
committed by GitHub
parent df980db4a8
commit 8bbfaacdae
2 changed files with 18 additions and 0 deletions

View File

@@ -1446,3 +1446,20 @@ issue_4831_2: {
expect_stdout: "PASS"
node_version: ">=4"
}
issue_4888: {
options = {
properties: true,
}
input: {
console.log(typeof {
__proto__: 42,
}.__proto__);
}
expect: {
console.log(typeof {
__proto__: 42,
}.__proto__);
}
expect_stdout: "object"
}