tor-browser

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

named-await-as-identifier-reference-escaped.js (958B)


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