tor-browser

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

await-as-identifier-reference.js (1071B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/async-functions/await-as-identifier-reference.case
      4 // - src/async-functions/syntax/async-arrow.template
      5 /*---
      6 description: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Async arrow function)
      7 esid: prod-AsyncArrowFunction
      8 features: [async-functions]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    Async Arrow Function Definitions
     15 
     16    AsyncArrowFunction[In, Yield, Await]:
     17      async [no LineTerminator here] AsyncArrowBindingIdentifier[?Yield] [no LineTerminator here] => AsyncConciseBody[?In]
     18      CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await] [no LineTerminator here] => AsyncConciseBody[?In]
     19 
     20    AsyncConciseBody[In]:
     21      { AsyncFunctionBody }
     22 
     23 
     24    IdentifierReference : Identifier
     25 
     26    It is a Syntax Error if this production has a [Await] parameter and
     27    StringValue of Identifier is "await".
     28 
     29 ---*/
     30 $DONOTEVALUATE();
     31 
     32 
     33 async () => {
     34  void await;
     35 }