Debian Codegraph @

js/src/tests/test262/language/block-scope/syntax/redeclaration/fn-scope-var-name-redeclaration-attempt-with-var.js

raw
1 // This file was procedurally generated from the following sources:
2 // - src/declarations/var.case
3 // - src/declarations/redeclare-allow-var/fn-block-attempt-to-redeclare-var-declaration.template
4 /*---
5 description: redeclaration with VariableDeclaration (VariableDeclaration in BlockStatement inside a function)
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 function x() {
17 { var f; var f }
18 }
19
20 reportCompare(0, 0);