test262/test/language/statements/class/syntax-invalid-grammar-priv...

38 lines
760 B
JavaScript
Raw Normal View History

2018-08-06 19:59:20 +02:00
// This file was procedurally generated from the following sources:
// - src/class-fields/grammar-privatenames-same-line-error.case
// - src/class-fields/syntax/invalid/cls-decl-fields-invalid-syntax.template
/*---
description: SyntaxError (class declaration)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassElement :
MethodDefinition
static MethodDefinition
FieldDefinition ;
;
FieldDefinition :
ClassElementName Initializer _opt
ClassElementName :
PropertyName
PrivateName
2018-08-10 17:52:50 +02:00
PrivateName ::
2018-08-06 19:59:20 +02:00
# IdentifierName
---*/
throw "Test262: This statement should not be evaluated.";
class C {
#x #y
}