-
Leo Balter authoredLeo Balter authored
grammar-special-meth-ctor-async-meth.case 504 B
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Async 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: [async-functions]
---*/
//- elements
async constructor() {}