André Bargull (2013-08-20T08:54:51.000Z)
domenic at domenicdenicola.com (2013-08-23T16:05:49.536Z)
> You are right, although the discrepancy between FunctionExpression and > FunctionDeclaration feels really odd -- I wonder how that came about. > It also means that both Firefox and Safari handle the example > incorrectly (though at least they don't crash :) ). This difference was introduced between 8. Dec. 2008 and 15. Dec. 2008, in the earlier drafts both, function declarations and function expressions, used the LexicalEnvironment of the running execution context for their [[Scope]]. And this is also what ES3 specified ("Pass in the scope chain of the running execution context as the Scope."). So maybe this is just another bug in the ES5 specification? Source: http://wiki.ecmascript.org/doku.php?id=es3.1:es3.1_proposal_working_draft