blob: 24af70a0732496951e5d75836708c1b6950c2324 [file] [edit]
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Private Async Methods cannot contain direct super
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
template: syntax/invalid
features: [async-functions, class-methods-private]
---*/
// Uses a valid heritage to avoid false positives
//- heritage
extends Function
//- elements
async #method() {
super();
}