W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2012

Re: "var" declarations shadowing properties from Window.prototype

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 12 Aug 2012 13:02:45 -0400
Message-ID: <5027E1B5.4080300@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>
CC: Brendan Eich <brendan@mozilla.com>, public-script-coord@w3.org, es-discuss@mozilla.org
On 8/11/12 9:46 PM, Cameron McCormack wrote:
> 1. If we don't do that auto-forwarding, does Window.prototype still need
> to exist?  What should window.__proto__ be?

That's a good question.  What is it in current UAs?  At least some don't 
have a Window at all...

> 2. If Window.prototype still does exist, should it be empty?

EventTarget.prototype wouldn't be empty in any case, so for consistency 
if Window.prototype exists it should not be empty.  At least assuming 
EventTarget.prototype is on the proto chain at all.

Received on Sunday, 12 August 2012 17:03:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:07 UTC