tor-browser

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

async-gen-await-as-label-identifier.js (894B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/async-generators/await-as-label-identifier.case
      4 // - src/async-generators/syntax/async-obj-method.template
      5 /*---
      6 description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Async generator method)
      7 esid: prod-AsyncGeneratorMethod
      8 features: [async-iteration]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    Async Generator Function Definitions
     15 
     16    AsyncGeneratorMethod :
     17      async [no LineTerminator here] * PropertyName ( UniqueFormalParameters ) { AsyncGeneratorBody }
     18 
     19 
     20    LabelIdentifier : Identifier
     21 
     22    It is a Syntax Error if this production has a [Await] parameter and
     23    StringValue of Identifier is "await".
     24 
     25 ---*/
     26 $DONOTEVALUATE();
     27 
     28 var obj = {
     29  async *method() {
     30    await: ;
     31  }
     32 };