This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20561 - Objects supporting indexed properties
Summary: Objects supporting indexed properties
Status: RESOLVED DUPLICATE of bug 16833
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard: [v1]
Keywords:
: 20562 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-04 02:09 UTC by Marcos Caceres
Modified: 2013-08-04 06:51 UTC (History)
3 users (show)

See Also:


Attachments

Description Marcos Caceres 2013-01-04 02:09:34 UTC
At: http://dev.w3.org/2006/webapi/WebIDL/#es-sequence

The spec says "Let length be one greater than V’s maximum indexed property index, if V is a platform object that supports indexed properties or the result of calling [[Get]] on V with property name “length” otherwise"

Is there any object that is a platform object that supports indexed properties but does not have a length property? Is there a use case for not mandating that such objects have a length property?
Comment 1 Marcos Caceres 2013-01-04 02:10:28 UTC
*** Bug 20562 has been marked as a duplicate of this bug. ***
Comment 2 Boris Zbarsky 2013-01-04 02:26:12 UTC
> Is there any object that is a platform object that supports indexed properties
> but does not have a length property?

I don't know of one, offhand, and currently Gecko's WebIDL bindings assume that this never happens, in fact.  We haven't run into a problem with it so far.
Comment 3 Cameron McCormack 2013-08-04 06:51:51 UTC

*** This bug has been marked as a duplicate of bug 16833 ***