mirror of
https://github.com/tc39/test262.git
synced 2025-08-22 02:18:23 +02:00
21 lines
519 B
Plaintext
21 lines
519 B
Plaintext
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
path: annexB/language/function-code/switch-dflt-
|
|
name: >
|
|
Funtion declaration in the `default` clause of a `switch` statement in function scope
|
|
esid: sec-web-compat-functiondeclarationinstantiation
|
|
flags: [noStrict]
|
|
---*/
|
|
|
|
(function(/*{ params }*/) {
|
|
/*{ before }*/
|
|
|
|
switch (1) {
|
|
default:
|
|
function f() { /*{ body }*/ }
|
|
}
|
|
|
|
/*{ after }*/
|
|
}(/*{ args }*/));
|