Re: How to correctly spec sequences requiring an iterable

On 11/15/13 12:58 PM, Domenic Denicola wrote:
> Is `for`-`of` supposed to work with strings?

It does in Gecko's current implementation.

And looking at 
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-forin-div-ofexpressionevaluation-abstract-operation 
that's because GetIterator is invoked on the result of ToObject(), so it 
should work per current spec.

> What about `Array.from`?

Again, as currently specced it works, since Array.from invokes ToObject.

-Boris

Received on Friday, 15 November 2013 18:13:19 UTC