« Bugzilla Issues Index
#3587 — Clarification needed in 14.2.17 (arrow functions)
- bug_id:
3587
- creation_ts:
2015-01-21 11:57:00 -0800
- short_desc:
Clarification needed in 14.2.17 (arrow functions)
- delta_ts:
2015-02-02 18:38:50 -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:
trivial
- everconfirmed:
true
- reporter:
Felix Kling
- assigned_to:
Allen Wirfs-Brock
- commentid:
11578
- comment_count:
0
- who:
Felix Kling
- bug_when:
2015-01-21 11:57:51 -0800
The note says:
> Any reference to `arguments`, `super`, or `this` within an ArrowFunction are resolved to their bindings in the lexically enclosing function.
But arrow functions can also be directly contained in global or module code. So it should probably be "... in the lexically enclosing environment" or similar.
- commentid:
11584
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-01-21 17:37:38 -0800
fixed in rev32 editor's draft:
The updated text:
NOTE An ArrowFunction does not define local bindings for arguments, super, or this. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Envionment of an immediately enclosing function. ...(unchanged)
- commentid:
11939
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-02 18:38:50 -0800
fixed in rev32 draft