tor-browser

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

void-await-expr-null.js (1179B)


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