| 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-dflt- |
| 5 |
name: > |
| 6 |
Funtion declaration in the `default` 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 |
default: |
| 17 |
function f() { /*{ body }*/ } |
| 18 |
} |
| 19 |
|
| 20 |
/*{ after }*/ |
| 21 |
}(/*{ args }*/)); |