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 23683 - Investigate restricting sequence<T> to iterables
Summary: Investigate restricting sequence<T> to iterables
Status: RESOLVED FIXED
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-30 19:07 UTC by Anne
Modified: 2014-09-12 03:40 UTC (History)
4 users (show)

See Also:


Attachments

Description Anne 2013-10-30 19:07:37 UTC
Because then it would match ECMAScript's spread operator which recently changed to exclude objects that have a length and indexable properties.
Comment 1 Boris Zbarsky 2013-10-30 20:14:17 UTC
I think this would be quite reasonable, fwiw.
Comment 2 Boris Zbarsky 2013-11-13 00:33:48 UTC
Note that if we plan to do this we should do it sooner rather than later before people start depending on the current behavior.  c.f. http://crbug.com/314755 and https://bugzilla.mozilla.org/show_bug.cgi?id=937348 and https://bugs.webkit.org/show_bug.cgi?id=124175
Comment 3 Boris Zbarsky 2013-11-15 16:15:58 UTC
http://www.w3.org/mid/5286470A.2010404@mit.edu sent about how to properly define this.
Comment 4 Cameron McCormack 2014-09-12 03:40:15 UTC
https://github.com/heycam/webidl/commit/1615f240136ae801a8a76ac84ac3fea3fbe68611 made JS -> IDL sequence conversions use @@iterator rather than length and array index properties.