« Bugzilla Issues Index

#1868 — 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

However, functions produced by `Function.prototype.bind` should also provide mutable "length" property, for the same reason:

var uncurryThis = f =>
// uncurryThis(f).length === 1 instead of f.length + 1

Currently, it is specified as nonwritable, nonconfigurable in Section, step 7.

fixed in rev21 editor's draft

fixed in rev21 draft