D112551
[gecko.git] / 
blobd1125518b9895e3ec50294af4f295a996749ad41
1 // |reftest| shell-option(--enable-top-level-await) skip-if(!xulRuntime.shell) module -- requires shell-options
2 // This file was procedurally generated from the following sources:
3 // - src/top-level-await/await-expr-array-literal.case
4 // - src/top-level-await/syntax/void.template
5 /*---
6 description: AwaitExpression ArrayLiteral (Valid syntax for top level await in an UnaryExpression (void).)
7 esid: prod-AwaitExpression
8 features: [top-level-await]
9 flags: [generated, module]
10 info: |
11     ModuleItem:
12       StatementListItem[~Yield, +Await, ~Return]
14     ...
16     UnaryExpression[Yield, Await]
17       void UnaryExpression[?Yield, ?Await]
18       [+Await]AwaitExpression[?Yield]
20     AwaitExpression[Yield]:
21       await UnaryExpression[?Yield, +Await]
23     ...
26     PrimaryExpression[Yield, Await]:
27       this
28       IdentifierReference[?Yield, ?Await]
29       Literal
30       ArrayLiteral[?Yield, ?Await]
31       ObjectLiteral[?Yield, ?Await]
32       FunctionExpression
33       ClassExpression[?Yield, ?Await]
34       GeneratorExpression
35       AsyncFunctionExpression
36       AsyncGeneratorExpression
37       RegularExpressionLiteral
38       TemplateLiteral[?Yield, ?Await, ~Tagged]
39       CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
41 ---*/
44 void await [];
46 reportCompare(0, 0);