« Bugzilla Issues Index
#1523 — 12.6.4: For-of completion values
- bug_id:
1523
- creation_ts:
2013-05-21 02:18:00 -0700
- short_desc:
12.6.4: For-of completion values
- delta_ts:
2015-02-15 16:13:40 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 15: May 14, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
WONTFIX
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=3007
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Andy Wingo
- assigned_to:
Allen Wirfs-Brock
- cc:
rossberg
- commentid:
4079
- comment_count:
0
- who:
Andy Wingo
- bug_when:
2013-05-21 02:18:44 -0700
The for-of semantics seem to complete with the last result.value where result.done was false, or undefined if the first result.done was true. Why not complete with the result.value of the result for which result.done is true?
- commentid:
4081
- comment_count:
1
- who:
Andy Wingo
- bug_when:
2013-05-21 02:27:06 -0700
I mis-read the spec; it completes with the body's completion value. Please close if this is intended.
- commentid:
9234
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-07-17 13:37:29 -0700
In Bug 3007 there is another proposal for using result.value as the completion value.
- commentid:
12747
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-15 16:13:40 -0800
Completing with the body's completion value is intentional and consistent with other similar statements