Re: How to correctly spec sequences requiring an iterable

On 11/15/13 11:26 AM, Allen Wirfs-Brock wrote:
> It is defined in the ES6 spec.  See
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-common-iteration-interfaces

So if I read this right, this is proposing:

1)  Check that |iterator = GetProperty(obj, @@iterator)| returns a
     callable object.
2)  Check that |obj2 = iterator.call(obj)| returns an object.
3)  Check that GetProperty(obj2, "next") is a function.
4)  ???

Or am I misreading the "Requirements" column in that only the "Value" 
column determines whether something implements the interface?

-Boris

Received on Friday, 15 November 2013 16:38:58 UTC