| 1 |
// This file was procedurally generated from the following sources: |
| 2 |
// - src/async-generators/yield-as-label-identifier-escaped.case |
| 3 |
// - src/async-generators/syntax/async-expression-named.template |
| 4 |
/*--- |
| 5 |
description: yield is a reserved keyword within generator function bodies and may not be used as a label 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 |
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 *g() { |
| 30 |
yi\u0065ld: ; |
| 31 |
}; |