Revision control
Copy as Markdown
// 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/global-code/switch-dflt-
name: >
Funtion declaration in the `default` clause of a `switch` statement in the global scope
esid: sec-web-compat-globaldeclarationinstantiation
es6id: B.3.3.2
flags: [noStrict]
---*/
switch (1) {
default:
function f() { /*{ body }*/ }
}