Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/async-generator/yield-as-label-identifier.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/async-generators/yield-as-label-identifier.case
3 // - src/async-generators/syntax/async-expression.template
4 /*---
5 description: yield is a reserved keyword within generator function bodies and may not be used as a label identifier. (Unnamed 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 LabelIdentifier : Identifier
21
22 It is a Syntax Error if this production has a [Yield] parameter and
23 StringValue of Identifier is "yield".
24
25 ---*/
26 throw "Test262: This statement should not be evaluated.";
27
28
29 var gen = async function *() {
30 yield: ;
31 };