Running this in Chrome and Firefox gives different answers:

```
(function() {

        if(true) {
            function f() { alert("yes"); };
        } else {
            function f() { alert("no"); };
        }
        f();

    })();

```

In Chrome the result is 'no'
In Firefox the result is 'yes'

Why the difference?