Debian Codegraph @

js/src/tests/test262/language/statements/switch/syntax/redeclaration/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/switch-attempt-to-redeclare-var-declaration.template
4 /*---
5 description: redeclaration with VariableDeclaration (VariableDeclaration in SwitchStatement)
6 esid: sec-switch-statement-static-semantics-early-errors
7 flags: [generated]
8 info: |
9 SwitchStatement : switch ( Expression ) CaseBlock
10
11 It is a Syntax Error if any element of the LexicallyDeclaredNames of
12 CaseBlock also occurs in the VarDeclaredNames of CaseBlock.
13 ---*/
14
15
16 switch (0) { case 1: var f; default: var f }
17
18 reportCompare(0, 0);