mirror of https://github.com/tc39/test262.git
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:
parent
31126581e7
commit
6888a8df82
|
@ -13,7 +13,7 @@ negative:
|
|||
$DONOTEVALUATE();
|
||||
|
||||
class C {
|
||||
get #f();
|
||||
get #f() {}
|
||||
static set #f(v) {}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@ $DONOTEVALUATE();
|
|||
|
||||
class C {
|
||||
set #f(v) {}
|
||||
static get #f();
|
||||
static get #f() {}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ negative:
|
|||
$DONOTEVALUATE();
|
||||
|
||||
class C {
|
||||
static get #f();
|
||||
static get #f() {}
|
||||
set #f(v) {}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@ $DONOTEVALUATE();
|
|||
|
||||
class C {
|
||||
static set #f(v) {}
|
||||
get #f();
|
||||
get #f() {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue