10 biggest JS pitfalls

Claude Pache claude.pache at gmail.com
Mon Dec 31 16:38:36 PST 2012


I've just discovered that someone is fallen in the following pit:
Change of the semantic of function declarations in Firefox when included in block (spoiler: hoisting issue).
(Not standard ES for sure, but definitely JS.)
Enjoy: http://statichtml.com/2011/spidermonkey-function-hoisting.html

—Claude



More information about the es-discuss mailing list