mirror of https://github.com/tc39/test262.git
30 lines
702 B
JavaScript
30 lines
702 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/class-elements/grammar-privatename-whitespace-error-gen-meth.case
|
|
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
|
|
/*---
|
|
description: No space allowed between sigil and IdentifierName (Generator Method) (class declaration)
|
|
esid: prod-ClassElement
|
|
features: [generators, class-methods-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 {
|
|
* # m() {}
|
|
}
|