archives

« Bugzilla Issues Index

#1868 — 15.3.3.5 Function.prototype.bind should produce a function with configurable length


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.


fixed in rev21 editor's draft


fixed in rev21 draft