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:
Nicolò Ribaudo 2019-09-24 19:51:10 +02:00 committed by Leo Balter
parent fa3d4a5190
commit 7697d3a1d5
3 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,8 @@ features: [class-methods-private]
extends B extends B
//- elements //- elements
#x() {}
method() { method() {
super.#x(); super.#x();
} }

View File

@ -28,6 +28,8 @@ $DONOTEVALUATE();
var C = class extends B var C = class extends B
{ {
#x() {}
method() { method() {
super.#x(); super.#x();
} }

View File

@ -28,6 +28,8 @@ $DONOTEVALUATE();
class C extends B class C extends B
{ {
#x() {}
method() { method() {
super.#x(); super.#x();
} }