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
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]
12 StatementListItem[~Yield, +Await, ~Return]
16 UnaryExpression[Yield, Await]
17 void UnaryExpression[?Yield, ?Await]
18 [+Await]AwaitExpression[?Yield]
20 AwaitExpression[Yield]:
21 await UnaryExpression[?Yield, +Await]
26 PrimaryExpression[Yield, Await]:
28 IdentifierReference[?Yield, ?Await]
30 ArrayLiteral[?Yield, ?Await]
31 ObjectLiteral[?Yield, ?Await]
33 ClassExpression[?Yield, ?Await]
35 AsyncFunctionExpression
36 AsyncGeneratorExpression
37 RegularExpressionLiteral
38 TemplateLiteral[?Yield, ?Await, ~Tagged]
39 CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]