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

30 lines
725 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-privatename-whitespace-error-async-gen-meth.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: No space allowed between sigil and IdentifierName (Async Generator Method) (class declaration)
esid: prod-ClassElement
features: [async-iteration, 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 {
async * # m() {}
}