Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/async-gen-await-as-identifier-reference.js

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