fix corner case in properties (#5388)

fixes #5387
This commit is contained in:
Alex Lam S.L
2022-03-20 16:01:42 +00:00
committed by GitHub
parent 5e30f3a48b
commit a8e040b133
2 changed files with 71 additions and 34 deletions

View File

@@ -2502,3 +2502,39 @@ issue_5352: {
expect_stdout: "PASS"
node_version: ">=12"
}
issue_5387: {
options = {
properties: true,
}
input: {
"use strict";
(function(a) {
try {
class A extends a {}
} catch (e) {
console.log("PASS");
}
})({
f() {
return this;
}
}.f);
}
expect: {
"use strict";
(function(a) {
try {
class A extends a {}
} catch (e) {
console.log("PASS");
}
})({
f() {
return this;
}
}.f);
}
expect_stdout: "PASS"
node_version: ">=4"
}