Function.length and Default Parameters

Brendan Eich brendan at mozilla.org
Fri Oct 12 11:53:26 PDT 2012


Yes, so given the case Kevin raises of default-ful followed by 
default-less I agree with Kevin: length should reflect all but rest (if 
present).

Allen, what built-ins would this break, do you know from checking what 
built-ins break under the current draft's rule?

/be

Domenic Denicola wrote:
> On Oct 12, 2012, at 13:03, "Kevin Smith" <khs4473 at gmail.com 
> <mailto:khs4473 at gmail.com>> wrote:
>
>>
>>     You seem to be under the mistaken impression that ES6 allows
>>     non-defaulted arguments after default ones. This is not the case. See
>>
>>     https://mail.mozilla.org/pipermail/es-discuss/2012-October/025704.html
>>
>>     for a (very) recent discussion of this.
>>
>>
>> I don't think that is true.  See Allen's response here:
>>
>> https://mail.mozilla.org/pipermail/es-discuss/2012-October/025709.html
>
> Oh, wow, thanks for correction. Sorry for the noise everyone X_x. I 
> got the opposite impression from other responses in the thread. Will 
> be sure to update the @esdiscuss Twitter account.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss


More information about the es-discuss mailing list