tor-browser

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

while-await-expr-obj-literal.js (1319B)


      1 // |reftest| module
      2 // This file was procedurally generated from the following sources:
      3 // - src/top-level-await/await-expr-obj-literal.case
      4 // - src/top-level-await/syntax/while-expr.template
      5 /*---
      6 description: AwaitExpression ObjectLiteral (Valid syntax for top level await in an while expression position.)
      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    IterationStatement[Yield, Await, Return]:
     17      while ( Expression[+In, ?Yield, ?Await] ) Statement[?Yield, ?Await, ?Return]
     18 
     19    ...
     20 
     21    UnaryExpression[Yield, Await]
     22      [+Await]AwaitExpression[?Yield]
     23 
     24    AwaitExpression[Yield]:
     25      await UnaryExpression[?Yield, +Await]
     26 
     27    ...
     28 
     29 
     30    PrimaryExpression[Yield, Await]:
     31      this
     32      IdentifierReference[?Yield, ?Await]
     33      Literal
     34      ArrayLiteral[?Yield, ?Await]
     35      ObjectLiteral[?Yield, ?Await]
     36      FunctionExpression
     37      ClassExpression[?Yield, ?Await]
     38      GeneratorExpression
     39      AsyncFunctionExpression
     40      AsyncGeneratorExpression
     41      RegularExpressionLiteral
     42      TemplateLiteral[?Yield, ?Await, ~Tagged]
     43      CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
     44 
     45 ---*/
     46 
     47 
     48 while (await { function() {} }) { break; }
     49 
     50 reportCompare(0, 0);