blob: a458dfd915bc1bac2e123231d678e914e672aa36 (
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
38
39
40
|
// |reftest| error:SyntaxError
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-privatename-whitespace-error-call-expr.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: No space allowed between sigil and IdentifierName (CallExpression) (class declaration)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Updated Productions
MemberExpression :
MemberExpression . PrivateName
CallExpression :
CallExpression . PrivateName
PrivateName ::
# IdentifierName
---*/
$DONOTEVALUATE();
class C {
#x;
f() {
return this;
}
m() {
this.f().# x;
}
}
|