itpastorn/programmering-1-med-js — Issue #12: In ES 5 strict mode functon statements are not allowed in any block but the top level.
Author: Raynos
Created: 2012-01-14 16:05:53+00:00
State: open

"top level" is confusing. Function statements are only allowed in the top level of global scope or in the top level of a function.

So

```
function foo() {
function bar() {
funciton baz() {

}
}
}
```

is valid.