This commit is contained in:
Leo Balter 2018-09-05 16:36:12 -04:00 committed by Rick Waldron
parent bf5661bf60
commit 585dac6d46
2 changed files with 2 additions and 4 deletions

View File

@ -2,14 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Generator Methods cannot be named "constructor"
desc: Accessor get Methods cannot be named "constructor"
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.
template: syntax/invalid
features: [generators]
---*/
//- elements

View File

@ -2,14 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Generator Methods cannot be named "constructor"
desc: Accessor set Methods cannot be named "constructor"
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.
template: syntax/invalid
features: [generators]
---*/
//- elements