Running this in Chrome and Firefox gives different answers:
(function() { if(true) { function f() { alert(\"yes\"); }; } else {
From V8 (Chrome JavaScript engine) bug tracker:
Not a bug. Firefox is the only browser that does what you're expecting. The behavior of Safari and IE on this is the same as Chrome's/V8's.
Not a bug. Firefox is the only browser that does what you're expecting.
The behavior of Safari and IE on this is the same as Chrome's/V8's.