mirror of https://github.com/tc39/test262.git
30 lines
695 B
JavaScript
30 lines
695 B
JavaScript
|
// This file was procedurally generated from the following sources:
|
||
|
// - src/class-elements/grammar-privatename-whitespace-error-field-init.case
|
||
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
||
|
/*---
|
||
|
description: No space allowed between sigil and IdentifierName (Field with Initializer) (class declaration)
|
||
|
esid: prod-ClassElement
|
||
|
features: [class-fields-private, class]
|
||
|
flags: [generated]
|
||
|
negative:
|
||
|
phase: parse
|
||
|
type: SyntaxError
|
||
|
info: |
|
||
|
Updated Productions
|
||
|
|
||
|
ClassElementName :
|
||
|
PropertyName
|
||
|
PrivateName
|
||
|
|
||
|
PrivateName ::
|
||
|
# IdentifierName
|
||
|
|
||
|
---*/
|
||
|
|
||
|
|
||
|
throw "Test262: This statement should not be evaluated.";
|
||
|
|
||
|
class C {
|
||
|
# x = 1;
|
||
|
}
|