Re: How to correctly spec sequences requiring an iterable

On Nov 15, 2013, at 8:08 AM, Boris Zbarsky wrote:

> 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?

It is defined in the ES6 spec.  See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-common-iteration-interfaces 

Allen

Received on Friday, 15 November 2013 16:27:02 UTC