ES3.1 Draft: 11 June 2008 version available

Brendan Eich brendan at mozilla.org
Sat Jun 14 23:57:00 PDT 2008


On Jun 14, 2008, at 11:43 PM, Garrett Smith wrote:

> The spec doesn't mention that FunctionExpression with Identifier can
> affect scope chain. Example:-
>
> (function f() {
>   var propertyIsEnumerable = 0;
>   (function f() {
>         alert(propertyIsEnumerable); //=> native code
>   })();
> })();

Both catch variables and named function expression bindings based on  
Object properties are bugs in ES3, fixed in ES4 proposals and specs  
for a while now, and fixed in some JS implementations (both cases are  
fixed in Opera, IIRC; catch variables are let-based in Firefox 2 and 3).

/be




More information about the Es4-discuss mailing list