mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
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();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
get #f();
|
get #f() {}
|
||||||
static set #f(v) {}
|
static set #f(v) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@ $DONOTEVALUATE();
|
|||||||
|
|
||||||
class C {
|
class C {
|
||||||
set #f(v) {}
|
set #f(v) {}
|
||||||
static get #f();
|
static get #f() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ negative:
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
static get #f();
|
static get #f() {}
|
||||||
set #f(v) {}
|
set #f(v) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@ $DONOTEVALUATE();
|
|||||||
|
|
||||||
class C {
|
class C {
|
||||||
static set #f(v) {}
|
static set #f(v) {}
|
||||||
get #f();
|
get #f() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user