Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: