| 1 |
// |reftest| module |
| 2 |
// This file was procedurally generated from the following sources: |
| 3 |
// - src/top-level-await/await-expr-nested.case |
| 4 |
// - src/top-level-await/syntax/block.template |
| 5 |
/*--- |
| 6 |
description: Nested AwaitExpressions (Valid syntax for top level await in a block.) |
| 7 |
esid: prod-AwaitExpression |
| 8 |
features: [top-level-await] |
| 9 |
flags: [generated, module] |
| 10 |
info: | |
| 11 |
ModuleItem: |
| 12 |
StatementListItem[~Yield, +Await, ~Return] |
| 13 |
|
| 14 |
... |
| 15 |
|
| 16 |
UnaryExpression[Yield, Await] |
| 17 |
[+Await]AwaitExpression[?Yield] |
| 18 |
|
| 19 |
AwaitExpression[Yield]: |
| 20 |
await UnaryExpression[?Yield, +Await] |
| 21 |
|
| 22 |
... |
| 23 |
|
| 24 |
|
| 25 |
TryStatement[Yield, Await, Return]: |
| 26 |
try Block[?Yield, ?Await, ?Return] Catch[?Yield, ?Await, ?Return] |
| 27 |
try Block[?Yield, ?Await, ?Return] Finally[?Yield, ?Await, ?Return] |
| 28 |
try Block[?Yield, ?Await, ?Return] Catch[?Yield, ?Await, ?Return] Finally[?Yield, ?Await, ?Return] |
| 29 |
|
| 30 |
... |
| 31 |
|
| 32 |
ExpressionStatement[Yield, Await]: |
| 33 |
[lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }] |
| 34 |
Expression[+In, ?Yield, ?Await]; |
| 35 |
|
| 36 |
---*/ |
| 37 |
|
| 38 |
|
| 39 |
{ |
| 40 |
{ |
| 41 |
{ |
| 42 |
{ |
| 43 |
{ |
| 44 |
{ |
| 45 |
{ |
| 46 |
{ |
| 47 |
{ |
| 48 |
{ |
| 49 |
{ |
| 50 |
{ |
| 51 |
{ |
| 52 |
{ |
| 53 |
{ |
| 54 |
{ |
| 55 |
{ |
| 56 |
await await await await await await await await await await await await await await await 'await'; |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
reportCompare(0, 0); |