W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

How to correctly spec sequences requiring an iterable

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 15 Nov 2013 11:08:42 -0500
Message-ID: <5286470A.2010404@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
This is about https://www.w3.org/Bugs/Public/show_bug.cgi?id=23683

An obvious question that arises is what the definition of iterable is.

Is it something for which HasProperty(obj, @@iterator) returns true?

Is it something for which GetProperty(obj, @@iterator) returns something 
other than undefined?

Is it something for which GetProperty(obj, @@iterator) returns a 
callable object?

Something else?

-Boris
Received on Friday, 15 November 2013 16:09:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC