Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-generator/named-await-as-binding-identifier.js

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