Fix typo in private getter/setter tests (#2971)

Several tests for getters and setters claim to check for an early
SyntaxError regarding mixing static and non-static propeties with the
same name. However, the tests trigger another issue: the getters have no
method body; they're missing curlies.

Fix the tests to test only the intended SyntaxError, not unrelated
SyntaxError-s.
This commit is contained in:
strager 2021-04-09 17:13:41 -07:00 committed by GitHub
parent 31126581e7
commit 6888a8df82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ negative:
$DONOTEVALUATE(); $DONOTEVALUATE();
class C { class C {
get #f(); get #f() {}
static set #f(v) {} static set #f(v) {}
} }

View File

@ -14,6 +14,6 @@ $DONOTEVALUATE();
class C { class C {
set #f(v) {} set #f(v) {}
static get #f(); static get #f() {}
} }

View File

@ -13,7 +13,7 @@ negative:
$DONOTEVALUATE(); $DONOTEVALUATE();
class C { class C {
static get #f(); static get #f() {}
set #f(v) {} set #f(v) {}
} }

View File

@ -14,6 +14,6 @@ $DONOTEVALUATE();
class C { class C {
static set #f(v) {} static set #f(v) {}
get #f(); get #f() {}
} }