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

[Bug 16832] Don't get the length property off platform objects with indexed properties

From: <bugzilla@jessica.w3.org>
Date: Wed, 20 Jun 2012 04:20:09 +0000
To: public-script-coord@w3.org
Message-Id: <E1ShCOn-0005OM-Pv@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16832

--- Comment #2 from Cameron McCormack <cam@mcc.id.au> 2012-06-20 04:20:08 UTC ---
OK, so two things to fix here:

1. We shouldn't look up a "length" property on a platform object that has
   indexed properties when we want to know how many there are, since that
property
   from the prototype could be changed.  Instead, we should just know
internally
   how many indexed properties there are.

2. We should always expose a "length" property on objects that have indexed
   properties, and not have to define an IDL attribute for it.  If we do this,
   then we should require indexed properties not to be sparse (which I think
   they currently can be).

Boris mentioned that it might be better to have "length" exposed as a data
property rather than an accessor property (and if we do that, then it'll need
to be on the object itself rather than on the prototype).  Is anyone opposed to
doing that?

-- 
Configure bugmail: https://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 Wednesday, 20 June 2012 04:20:12 UTC

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