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
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
Depends on:
Reported: 2013-10-30 19:07 UTC by Anne
Modified: 2014-09-12 03:40 UTC (History)
4 users (show)

See Also:


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. and and
Comment 3 Boris Zbarsky 2013-11-15 16:15:58 UTC sent about how to properly define this.
Comment 4 Cameron McCormack 2014-09-12 03:40:15 UTC made JS -> IDL sequence conversions use @@iterator rather than length and array index properties.