tor-browser

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

try-await-expr-null.js (1592B)


      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/try.template
      5 /*---
      6 description: AwaitExpression NullLiteral (Valid syntax for top level await in try-catch-finally blocks.)
      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    TryStatement[Yield, Await, Return]:
     17      try Block[?Yield, ?Await, ?Return] Catch[?Yield, ?Await, ?Return]
     18      try Block[?Yield, ?Await, ?Return] Finally[?Yield, ?Await, ?Return]
     19      try Block[?Yield, ?Await, ?Return] Catch[?Yield, ?Await, ?Return] Finally[?Yield, ?Await, ?Return]
     20 
     21    ...
     22 
     23    UnaryExpression[Yield, Await]
     24      [+Await]AwaitExpression[?Yield]
     25 
     26    AwaitExpression[Yield]:
     27      await UnaryExpression[?Yield, +Await]
     28 
     29    ...
     30 
     31 
     32    PrimaryExpression[Yield, Await]:
     33      this
     34      IdentifierReference[?Yield, ?Await]
     35      Literal
     36      ArrayLiteral[?Yield, ?Await]
     37      ObjectLiteral[?Yield, ?Await]
     38      FunctionExpression
     39      ClassExpression[?Yield, ?Await]
     40      GeneratorExpression
     41      AsyncFunctionExpression
     42      AsyncGeneratorExpression
     43      RegularExpressionLiteral
     44      TemplateLiteral[?Yield, ?Await, ~Tagged]
     45      CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
     46 
     47 ---*/
     48 
     49 
     50 try {
     51  await null;
     52 } catch(e) {
     53  await null;
     54 }
     55 
     56 try {
     57  await null;
     58 } finally {
     59  await null;
     60 }
     61 
     62 try {
     63  await null;
     64 } catch(e) {
     65  await null;
     66 } finally {
     67  await null;
     68 }
     69 
     70 reportCompare(0, 0);