tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

top-level-await-expr-literal-number.js (1116B)


      1 // |reftest| module
      2 // This file was procedurally generated from the following sources:
      3 // - src/top-level-await/await-expr-literal-number.case
      4 // - src/top-level-await/syntax/top-level.template
      5 /*---
      6 description: AwaitExpression NumberLiteral (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    PrimaryExpression[Yield, Await]:
     26      this
     27      IdentifierReference[?Yield, ?Await]
     28      Literal
     29      ArrayLiteral[?Yield, ?Await]
     30      ObjectLiteral[?Yield, ?Await]
     31      FunctionExpression
     32      ClassExpression[?Yield, ?Await]
     33      GeneratorExpression
     34      AsyncFunctionExpression
     35      AsyncGeneratorExpression
     36      RegularExpressionLiteral
     37      TemplateLiteral[?Yield, ?Await, ~Tagged]
     38      CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
     39 
     40 ---*/
     41 
     42 
     43 await 1;
     44 
     45 reportCompare(0, 0);