The following javascript works in Chrome and IE but errors out in Firefox because bar is undefined when assigned to callBar.
So who got their scope rules right?
function foo() {
var callBar = bar;
if (1 === 1) {
callBar();
function bar() {
alert('yo');
}
}
}
foo();