« Bugzilla Issues Index
#2522 — 13.6.3, 13.6.4 for statements: Add lookahead restriction for "let ["
- bug_id:
2522
- creation_ts:
2014-02-10 08:23:00 -0800
- short_desc:
13.6.3, 13.6.4 for statements: Add lookahead restriction for "let ["
- delta_ts:
2014-02-12 14:06:16 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 22: January 20, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
DUPLICATE
- dup_id:
2525
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
7242
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-02-10 08:23:04 -0800
13.6.3 The for Statement
13.6.4 The for-in and for-of Statements
Add a lookahead restriction to disallow "let [" similar to the restriction in '13.4 Expression Statement':
---
for (
[lookahead ∉ { let [ }] Expression[?Yield]opt ;
Expression[In, ?Yield]opt ;
Expression[In, ?Yield]opt
) Statement[?Yield, ?Return]
for (
[lookahead ∉ { let [ }] LeftHandSideExpression[?Yield]
in Expression[In, ?Yield]
) Statement[?Yield, ?Return]
for (
[lookahead ∉ { let [ }] LeftHandSideExpression[?Yield]
of AssignmentExpression[In, ?Yield]
) Statement[?Yield, ?Return]
---
- commentid:
7249
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-02-12 14:06:16 -0800
*** This bug has been marked as a duplicate of bug 2525 ***