Debian Codegraph @

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

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