« Bugzilla Issues Index
#1261 — Arrow functions early errors with rest parameter
- bug_id:
1261
- creation_ts:
2013-03-05 10:56:00 -0800
- short_desc:
Arrow functions early errors with rest parameter
- delta_ts:
2015-07-10 08:34:22 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 13: December 21, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Erik Arvidsson
- assigned_to:
Allen Wirfs-Brock
- cc:
["andrebargull", "erik.arvidsson"]
- commentid:
3268
- comment_count:
0
- who:
Erik Arvidsson
- bug_when:
2013-03-05 10:56:39 -0800
It turns out that the following is a SyntaxError
(foo) => { var foo; }
but
(foo, ...bar) => { var foo; }
isn't
The reason is that for the first IsSimpleParameterList is true but for the second one it is false.
"It is a Syntax Error if IsSimpleParameterList of ArrowParameters is true and any element of the BoundNames of ArrowParameters also occurs in the VarDeclaredNames of ConciseBody."
This does not seem to be the expected behavior.
- commentid:
4112
- comment_count:
1
- who:
André Bargull
- bug_when:
2013-05-31 02:22:47 -0700
Fixed in rev15, close issue?