tor-browser

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

async-function-name-redeclaration-attempt-with-async-generator.js (725B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/declarations/async-generator.case
      4 // - src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template
      5 /*---
      6 description: redeclaration with AsyncGeneratorDeclaration (AsyncFunctionDeclaration in BlockStatement)
      7 esid: sec-block-static-semantics-early-errors
      8 features: [async-iteration, async-functions]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    Block : { StatementList }
     15 
     16    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains
     17    any duplicate entries.
     18 
     19 ---*/
     20 
     21 
     22 $DONOTEVALUATE();
     23 
     24 { async function f() {} async function* f() {} }