Debian Codegraph @

js/src/tests/test262/language/statements/class/elements/syntax/early-errors/grammar-privatename-identifier-invalid-ues.js

raw
1 // |reftest| error:SyntaxError
2 // This file was procedurally generated from the following sources:
3 // - src/class-elements/grammar-privatename-identifier-invalid-ues.case
4 // - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
5 /*---
6 description: Valid PrivateName Syntax (class declaration)
7 esid: prod-ClassElement
8 features: [class-fields-private, class]
9 flags: [generated]
10 negative:
11 phase: parse
12 type: SyntaxError
13 info: |
14 ClassElement :
15 MethodDefinition
16 static MethodDefinition
17 FieldDefinition ;
18 ;
19
20 FieldDefinition :
21 ClassElementName Initializer _opt
22
23 ClassElementName :
24 PropertyName
25 PrivateName
26
27 PrivateName ::
28 # IdentifierName
29
30 IdentifierName ::
31 IdentifierStart
32 IdentifierName IdentifierPart
33
34 IdentifierStart ::
35 UnicodeIDStart
36 $
37 _
38 \ UnicodeEscapeSequence
39
40 IdentifierPart::
41 UnicodeIDContinue
42 $
43 \ UnicodeEscapeSequence
44 <ZWNJ> <ZWJ>
45
46 UnicodeIDStart::
47 any Unicode code point with the Unicode property "ID_Start"
48
49 UnicodeIDContinue::
50 any Unicode code point with the Unicode property "ID_Continue"
51
52
53 NOTE 3
54 The sets of code points with Unicode properties "ID_Start" and
55 "ID_Continue" include, respectively, the code points with Unicode
56 properties "Other_ID_Start" and "Other_ID_Continue".
57
58 ---*/
59
60
61 $DONOTEVALUATE();
62
63 class C {
64 #\u0000;
65 }