mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Test specific error in super-private-access-invalid.case (#2355)
Without declaring #x in the class body, the thrown error could have been about the undeclared private name rather than about the SuperProperty
This commit is contained in:
parent
fa3d4a5190
commit
7697d3a1d5
@ -23,6 +23,8 @@ features: [class-methods-private]
|
||||
extends B
|
||||
|
||||
//- elements
|
||||
#x() {}
|
||||
|
||||
method() {
|
||||
super.#x();
|
||||
}
|
||||
|
@ -28,6 +28,8 @@ $DONOTEVALUATE();
|
||||
|
||||
var C = class extends B
|
||||
{
|
||||
#x() {}
|
||||
|
||||
method() {
|
||||
super.#x();
|
||||
}
|
||||
|
@ -28,6 +28,8 @@ $DONOTEVALUATE();
|
||||
|
||||
class C extends B
|
||||
{
|
||||
#x() {}
|
||||
|
||||
method() {
|
||||
super.#x();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user