blob: 0f116841734c4c516f60956d6a2e8c98538f5bd5 [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-async-gen-meth-prototype.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Static Async Generator Methods cannot be named prototype (class declaration)
esid: prod-ClassElement
features: [async-iteration, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
$DONOTEVALUATE();
class C {
static async * prototype() {}
}