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

38 lines
792 B
JavaScript
Raw Normal View History

2018-08-06 19:59:20 +02:00
// This file was procedurally generated from the following sources:
2018-09-05 22:12:46 +02:00
// - src/class-elements/grammar-privatename-error.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
2018-08-06 19:59:20 +02:00
/*---
2018-08-10 17:52:50 +02:00
description: No space allowed between sigial and IdentifierName (class declaration)
2018-08-06 19:59:20 +02:00
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
}