blob: dffad30511102c49f424d0caa223cc3bc38aec88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// |reftest| error:SyntaxError
// This file was procedurally generated from the following sources:
// - src/class-elements/super-private-access-invalid.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: It is syntax error if PrivateName IdentifierName is accessed on SuperProperty (class declaration)
esid: prod-ClassElement
features: [class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassElementName :
PropertyName
PrivateName
PrivateName ::
# IdentifierName
SuperProperty:
super[Expression]
super.IdentifierName
---*/
$DONOTEVALUATE();
class C extends B
{
#x() {}
method() {
super.#x();
}
}
|