« Bugzilla Issues Index
#1163 — RHS of for-of should be AssignmentExpression
  
  
  - bug_id:
    1163
  
- creation_ts:
    2012-12-20 17:35:00 -0800
  
- short_desc:
    RHS of for-of should be AssignmentExpression
  
- delta_ts:
    2013-03-08 14:44:31 -0800
  
- product:
    Draft for 6th Edition
  
- component:
    technical issue
  
- version:
    Rev 12: November 22, 2012 Draft
  
- rep_platform:
    All
  
- op_sys:
    All
  
- bug_status:
    RESOLVED
  
- resolution:
    FIXED
  
- priority:
    Normal
  
- bug_severity:
    enhancement
  
- everconfirmed:
    true
  
- reporter:
    Dave Herman
  
- assigned_to:
    Allen Wirfs-Brock
  
  
  
  - commentid:
    3056
  
- comment_count:
    0
  
- who:
    Dave Herman
  
- bug_when:
    2012-12-20 17:35:14 -0800
  
The right-hand side of a for-of loop should be an AssignmentExpression. This future-proofs for simultaneous iteration such as:
http://wiki.ecmascript.org/doku.php?id=strawman:simultaneous_iteration
(It's also what people agreed to for paren-free comprehensions, although I am arguing for left-to-right comprehensions, which are not paren-free.)
Dave
  
  
  - commentid:
    3297
  
- comment_count:
    1
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2013-03-06 18:20:27 -0800
  
fixed in rev 14 editor's draft
  
  
  - commentid:
    3388
  
- comment_count:
    2
  
- who:
    Allen Wirfs-Brock
  
- bug_when:
    2013-03-08 14:44:31 -0800
  
in Rev 14 draft