tor-browser

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

inner-block-var-name-redeclaration-attempt-with-var.js (1001B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/declarations/var.case
      3 // - src/declarations/redeclare-allow-var/block-attempt-to-redeclare-inner-block-var-declaration.template
      4 /*---
      5 description: redeclaration with VariableDeclaration (VariableDeclaration in a BlockStatement inside a BlockStatement)
      6 esid: sec-block-static-semantics-early-errors
      7 flags: [generated]
      8 info: |
      9    Block : { StatementList }
     10 
     11    It is a Syntax Error if any element of the LexicallyDeclaredNames of
     12    StatementList also occurs in the VarDeclaredNames of StatementList.
     13 
     14    Static Semantics: VarDeclaredNames
     15 
     16    Block : { }
     17 
     18    1. Return a new empty List.
     19 
     20    StatementList : StatementList StatementListItem
     21 
     22    1. Let names be VarDeclaredNames of StatementList.
     23    2. Append to names the elements of the VarDeclaredNames of StatementListItem.
     24    3. Return names.
     25 
     26    StatementListItem : Declaration
     27 
     28    1. Return a new empty List.
     29 ---*/
     30 
     31 
     32 { { var f; } var f }
     33 
     34 reportCompare(0, 0);