« Bugzilla Issues Index
#1868 — 15.3.3.5 Function.prototype.bind should produce a function with configurable length
- bug_id:
1868
- creation_ts:
2013-08-30 10:48:00 -0700
- short_desc:
15.3.3.5 Function.prototype.bind should produce a function with configurable length
- delta_ts:
2013-11-08 13:09:24 -0800
- product:
Draft for 6th Edition
- component:
normative change from ES5.x
- version:
Rev 17: August 23, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- cc:
utatane.tea
- commentid:
5279
- comment_count:
0
- who:
Claude Pache
- bug_when:
2013-08-30 10:48:01 -0700
It has been agreed that user-defined functions will have configurable "length" property, so that it can be corrected, and it is so specified since rev.17 (Section 8.3.16.6).
However, functions produced by `Function.prototype.bind` should also provide mutable "length" property, for the same reason:
var uncurryThis = f => Function.protytpe.call.bind(f)
// uncurryThis(f).length === 1 instead of f.length + 1
Currently, it is specified as nonwritable, nonconfigurable in Section 15.3.3.5, step 7.
- commentid:
6180
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-29 12:07:13 -0700
fixed in rev21 editor's draft
- commentid:
6579
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-11-08 13:09:24 -0800
fixed in rev21 draft