tor-browser

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

await-as-binding-identifier-escaped.js (904B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/async-functions/await-as-binding-identifier-escaped.case
      4 // - src/async-functions/syntax/async-expression.template
      5 /*---
      6 description: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Unnamed async function expression)
      7 esid: prod-AsyncFunctionExpression
      8 features: [async-functions]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    Async Function Definitions
     15 
     16    AsyncFunctionExpression :
     17      async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
     18 
     19 
     20    BindingIdentifier : 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 
     29 var asyncFn = async function () {
     30  var \u0061wait;
     31 };