var-name-redeclaration-attempt-with-var.js (587B)
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-var-declaration.template 4 /*--- 5 description: redeclaration with VariableDeclaration (VariableDeclaration in 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 15 16 { var f; var f } 17 18 reportCompare(0, 0);