mirror of
https://github.com/tc39/test262.git
synced 2025-05-11 10:20:35 +02:00
26 lines
739 B
JavaScript
26 lines
739 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/class-elements/grammar-special-meth-ctor-set.case
|
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
|
/*---
|
|
description: Accessor set Methods cannot be named "constructor" (class expression)
|
|
esid: prod-ClassElement
|
|
features: [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.
|
|
|
|
---*/
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
var C = class {
|
|
set constructor(_) {}
|
|
};
|