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 _______________________________________________ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.org/listinfo/es4-discuss