blob: 21f37259291f277a0d670b23aee09fe494109a37 [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-ctor-gen.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class expression)
esid: prod-ClassElement
features: [generators, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true.
---*/
$DONOTEVALUATE();
var C = class {
* constructor() {}
};