blob: cadc86f3923b057b5785fed86cd3dfd7955d4136 [file] [log] [blame]
// 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-expr-elements-invalid-syntax.template
/*---
description: No space allowed between sigil and IdentifierName (Field with Initializer) (class expression)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Updated Productions
ClassElementName :
PropertyName
PrivateName
PrivateName ::
# IdentifierName
---*/
$DONOTEVALUATE();
var C = class {
# x = 1;
};