mirror of https://github.com/tc39/test262.git
22 lines
563 B
Plaintext
22 lines
563 B
Plaintext
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
desc: Static Async Methods cannot contain direct super
|
|
info: |
|
|
Class Definitions / Static Semantics: Early Errors
|
|
|
|
ClassElement : static MethodDefinition
|
|
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
|
|
template: syntax/invalid
|
|
features: [async-functions]
|
|
---*/
|
|
|
|
// Uses a valid heritage to avoid false positives
|
|
//- heritage
|
|
extends Function
|
|
//- elements
|
|
static async method() {
|
|
super();
|
|
}
|