mirror of https://github.com/tc39/test262.git
30 lines
729 B
JavaScript
30 lines
729 B
JavaScript
|
// This file was procedurally generated from the following sources:
|
||
|
// - src/class-elements/grammar-privatename-whitespace-error-static-field-init.case
|
||
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
||
|
/*---
|
||
|
description: No space allowed between sigil and IdentifierName (Static Field with Initializer) (class expression)
|
||
|
esid: prod-ClassElement
|
||
|
features: [class-static-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.";
|
||
|
|
||
|
var C = class {
|
||
|
static # x = 1;
|
||
|
};
|