Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/class/async-gen-method-await-as-label-identifier-escaped.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/async-generators/await-as-label-identifier-escaped.case
3 // - src/async-generators/syntax/async-class-expr-method.template
4 /*---
5 description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Async generator method as a ClassExpression element)
6 esid: prod-AsyncGeneratorMethod
7 features: [async-iteration]
8 flags: [generated]
9 negative:
10 phase: parse
11 type: SyntaxError
12 info: |
13 ClassElement :
14 MethodDefinition
15
16 MethodDefinition :
17 AsyncGeneratorMethod
18
19 Async Generator Function Definitions
20
21 AsyncGeneratorMethod :
22 async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }
23
24
25 LabelIdentifier : Identifier
26
27 It is a Syntax Error if this production has a [Await] parameter and
28 StringValue of Identifier is "await".
29
30 ---*/
31 throw "Test262: This statement should not be evaluated.";
32
33
34 var C = class { async *gen() {
35 \u0061wait: ;
36 }};