Incompatibility between generators and arrays in the Iterator protocol

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Jun 30 18:45:14 UTC 2015


On Jun 30, 2015, at 11:13 AM, Tim Jansen wrote:

> Is this incompatibility intentional, or or just an implementation issue in the browsers (tested on FF38 and Chrome 43)? I wasn't able to find any information on this. The ES6 draft from April '15 doesn't define when exactly 'done' is set.
> 
> 
sure it does:

For example,

http://ecma-international.org/ecma-262/6.0/#sec-%arrayiteratorprototype%.next step 10.b
http://ecma-international.org/ecma-262/6.0/#sec-generatorstart step 4:8



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150630/2dbe7ea6/attachment-0001.html>


More information about the es-discuss mailing list