Should the "length" property of bound functions be configurable

Claude Pache claude.pache at gmail.com
Fri Aug 30 10:49:33 PDT 2013


Filed bug: https://bugs.ecmascript.org/show_bug.cgi?id=1868

—Claude

Le 30 août 2013 à 18:34, Brendan Eich <brendan at mozilla.com> a écrit :

> Allen probably could use a bug on file at bugs.ecmascript.org -- anyone?
> 
> /be
> 
>> Claude Pache <mailto:claude.pache at gmail.com>
>> August 30, 2013 5:35 AM
>> The `uncurryThis` metafunction, given as example in [1], needs to correct the length of a function produced by `bind`. Simplified version:
>> 
>> ```
>> uncurryThis = f => Function.protytpe.call.bind(f) // uncurryThis(f).length == 1 instead of f.length + 1
>> ```
>> 
>> So, yes, `bind` should produce functions with mutable length.
>> 
>> —Claude
>> 
>> [1] http://www.mail-archive.com/es-discuss@mozilla.org/msg21786.html
>> 
>> 
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>> 



More information about the es-discuss mailing list