W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12845] Disallow shadowing attributes

From: <bugzilla@jessica.w3.org>
Date: Thu, 02 Jun 2011 00:36:04 +0000
To: public-script-coord@w3.org
Message-Id: <E1QRvtM-0005g0-TH@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12845

--- Comment #5 from Cameron McCormack <cam@mcc.id.au> 2011-06-02 00:36:04 UTC ---
I'm not actually sure what the problem with the shadowing attribute is.  As
others say, the property on Bar.prototype will need to have both a getter and a
setter.  The spec defining these interfaces should just define what Bar::quux
returns on getting.  That definition could be "Returns the same thing as
Foo::quux".

One question is whether we need to make
`Object.getOwnPropertyDescriptor(Foo.prototype, "quux").get ==
Object.getOwnPropertyDescriptor(Bar.prototype, "quux").get`.  I don't think we
do.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 2 June 2011 00:36:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC