Debian Codegraph @

js/src/tests/test262/language/module-code/top-level-await/syntax/void-await-expr-func-expression.js

raw
1 // |reftest| module
2 // This file was procedurally generated from the following sources:
3 // - src/top-level-await/await-expr-func-expression.case
4 // - src/top-level-await/syntax/void.template
5 /*---
6 description: AwaitExpression StringLiteral (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]
13
14 ...
15
16 UnaryExpression[Yield, Await]
17 void UnaryExpression[?Yield, ?Await]
18 [+Await]AwaitExpression[?Yield]
19
20 AwaitExpression[Yield]:
21 await UnaryExpression[?Yield, +Await]
22
23 ...
24
25
26 ExpressionStatement[Yield, Await]:
27 [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
28 Expression[+In, ?Yield, ?Await];
29
30 ...
31
32 PrimaryExpression[Yield, Await]:
33 this
34 IdentifierReference[?Yield, ?Await]
35 Literal
36 ArrayLiteral[?Yield, ?Await]
37 ObjectLiteral[?Yield, ?Await]
38 FunctionExpression
39 ClassExpression[?Yield, ?Await]
40 GeneratorExpression
41 AsyncFunctionExpression
42 AsyncGeneratorExpression
43 RegularExpressionLiteral
44 TemplateLiteral[?Yield, ?Await, ~Tagged]
45 CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
46
47 ---*/
48
49
50 void await function() {};
51
52 reportCompare(0, 0);