test262/test/language/statements/class/syntax/early-errors/grammar-privatename-whitesp...

30 lines
695 B
JavaScript
Raw Normal View History

2018-09-10 22:58:12 +02:00
// 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;
}