Debian Codegraph @

js/src/tests/test262/language/module-code/top-level-await/syntax/top-level-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/top-level.template
5 /*---
6 description: AwaitExpression StringLiteral (Valid syntax for top level await.)
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 ExpressionStatement[Yield, Await]:
26 [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
27 Expression[+In, ?Yield, ?Await];
28
29 ...
30
31 PrimaryExpression[Yield, Await]:
32 this
33 IdentifierReference[?Yield, ?Await]
34 Literal
35 ArrayLiteral[?Yield, ?Await]
36 ObjectLiteral[?Yield, ?Await]
37 FunctionExpression
38 ClassExpression[?Yield, ?Await]
39 GeneratorExpression
40 AsyncFunctionExpression
41 AsyncGeneratorExpression
42 RegularExpressionLiteral
43 TemplateLiteral[?Yield, ?Await, ~Tagged]
44 CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
45
46 ---*/
47
48
49 await function() {};
50
51 reportCompare(0, 0);