Debian Codegraph @

js/src/tests/test262/language/module-code/top-level-await/syntax/export-lex-decl-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/export-lex-declaration.template
5 /*---
6 description: AwaitExpression StringLiteral (Valid syntax for top level await in export LexicalDeclaration)
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 ExportDeclaration:
25 export * FromClause ;
26 export ExportClause FromClause ;
27 export ExportClause ;
28 export VariableStatement[~Yield, +Await]
29 export Declaration[~Yield, +Await]
30 export defaultHoistableDeclaration[~Yield, +Await, +Default]
31 export defaultClassDeclaration[~Yield, +Await, +Default]
32 export default[lookahead ∉ { function, async [no LineTerminator here] function, class }]AssignmentExpression[+In, ~Yield, ~Await];
33
34 Declaration[Yield, Await]:
35 HoistableDeclaration[?Yield, ?Await, ~Default]
36 ClassDeclaration[?Yield, ?Await, ~Default]
37 LexicalDeclaration[+In, ?Yield, ?Await]
38
39 LexicalDeclaration[In, Yield, Await]:
40 LetOrConstBindingList[?In, ?Yield, ?Await];
41
42
43 ExpressionStatement[Yield, Await]:
44 [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
45 Expression[+In, ?Yield, ?Await];
46
47 ...
48
49 PrimaryExpression[Yield, Await]:
50 this
51 IdentifierReference[?Yield, ?Await]
52 Literal
53 ArrayLiteral[?Yield, ?Await]
54 ObjectLiteral[?Yield, ?Await]
55 FunctionExpression
56 ClassExpression[?Yield, ?Await]
57 GeneratorExpression
58 AsyncFunctionExpression
59 AsyncGeneratorExpression
60 RegularExpressionLiteral
61 TemplateLiteral[?Yield, ?Await, ~Tagged]
62 CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
63
64 ---*/
65
66
67 export let x = await function() {};
68 export const y = await function() {};
69
70 reportCompare(0, 0);