"var" declarations shadowing properties from Window.prototype

Jonas Sicking jonas at sicking.cc
Sat Aug 11 09:07:59 PDT 2012


On Sat, Aug 11, 2012 at 8:57 AM, Brendan Eich <brendan at mozilla.org> wrote:
>> Webkit also puts attributes on objects for non-globals, but I'm not
>> promoting that behavior. Nor do I know of any benefits regarding web
>> compatibility that comes with that behavior.
>
> Ok, that's what I was getting at. It may be that this is just historical
> consistency for all objects, no global exception, but sounds like we are
> agreeing that the global object needs an exception ("own" promotion of
> attributes and methods) in WebIDL.

Yes. Sounds like we're fully in agreement.

/ Jonas


More information about the es-discuss mailing list