archives

« Bugzilla Issues Index

#3687 — Should "The Iterator Interface" include `return` too?


https://people.mozilla.org/~jorendorff/es6-draft.html#sec-iterator-interface lists `next()` as the only method of the iterable interface. However I think `return()` qualifies, in that all iterator-consuming constructs in the spec have the potential to trigger `return()`. Thoughts?


fixed in rev33 editor's draft


fixed in rev33