2 ms·
This works different is firefox than in webkit. ==== if (true) { function foo(){ return 1; } } else { function foo(){ return 2; } }
by pdelgallego 16y ago
This works different is firefox than in webkit.
====
if (true) {
function foo(){ return 1; }
} else {
function foo(){ return 2; }
}
foo();
firefox return 1
webkit return 2
Other engines return an error (that is what is suppose to happen according to the specification)