test262/test/language/statements/class/syntax/early-errors/grammar-field-identifier-in...

72 lines
1.6 KiB
JavaScript
Raw Normal View History

2018-08-06 19:59:20 +02:00
// This file was procedurally generated from the following sources:
2018-09-05 22:12:46 +02:00
// - src/class-elements/grammar-field-identifier-invalid-ues-error.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
2018-08-06 19:59:20 +02:00
/*---
2018-08-10 17:52:50 +02:00
description: Invalid FieldDefinition, ClassElementName, PropertyName Syntax (class declaration)
2018-08-06 19:59:20 +02:00
esid: prod-ClassElement
features: [class-fields-public, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassElement :
MethodDefinition
static MethodDefinition
FieldDefinition ;
;
FieldDefinition :
ClassElementName Initializer _opt
ClassElementName :
PropertyName
PrivateName
PropertyName :
LiteralPropertyName
ComputedPropertyName
LiteralPropertyName :
IdentifierName
StringLiteral
NumericLiteral
IdentifierName ::
IdentifierStart
IdentifierName IdentifierPart
IdentifierStart ::
UnicodeIDStart
$
_
2018-08-10 17:52:50 +02:00
\ UnicodeEscapeSequence
2018-08-06 19:59:20 +02:00
IdentifierPart ::
UnicodeIDContinue
$
2018-08-10 17:52:50 +02:00
\ UnicodeEscapeSequence
2018-08-06 19:59:20 +02:00
<ZWNJ> <ZWJ>
UnicodeIDStart ::
any Unicode code point with the Unicode property "ID_Start"
UnicodeIDContinue ::
any Unicode code point with the Unicode property "ID_Continue"
NOTE 3
The sets of code points with Unicode properties "ID_Start" and
"ID_Continue" include, respectively, the code points with Unicode
properties "Other_ID_Start" and "Other_ID_Continue".
---*/
throw "Test262: This statement should not be evaluated.";
class C {
\u0000;
}