« Bugzilla Issues Index
#3687 — Should "The Iterator Interface" include `return` too?
- bug_id:
3687
- creation_ts:
2015-01-29 01:04:00 -0800
- short_desc:
Should "The Iterator Interface" include `return` too?
- delta_ts:
2015-02-12 12:17:40 -0800
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 31: January 15, 2015 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Domenic Denicola
- assigned_to:
Allen Wirfs-Brock
- commentid:
11747
- comment_count:
0
- who:
Domenic Denicola
- bug_when:
2015-01-29 01:04:49 -0800
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?
- commentid:
12266
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-09 16:55:39 -0800
fixed in rev33 editor's draft
- commentid:
12447
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-12 12:17:40 -0800
fixed in rev33