Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/src/annex-b-fns/func/switch-case.template

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 path: annexB/language/function-code/switch-case-
5 name: >
6 Function declaration in the `case` clause of a `switch` statement in function scope
7 esid: sec-web-compat-functiondeclarationinstantiation
8 es6id: B.3.3.1
9 flags: [noStrict]
10 ---*/
11
12 (function(/*{ params }*/) {
13 /*{ before }*/
14
15 switch (1) {
16 case 1:
17 function f() { /*{ body }*/ }
18 }
19
20 /*{ after }*/
21 }(/*{ args }*/));