Clarification on function default param values

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue Oct 1 11:15:35 PDT 2013


I see. Does `null` count as undefined too or it must be explicitly
undefined ? not that using a transpiler this matters much ... just curious
about how the ES < 6 will look like.


On Tue, Oct 1, 2013 at 11:02 AM, Brendan Eich <brendan at mozilla.com> wrote:

> No, we are using undefined actual parameter value, not argument.length, to
> trigger defaulting -- as discussed many times and cited by me (again)
> recently in reply to Oliver. Please do not go backward.
>
> /be
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131001/6f7b1ffd/attachment.html>


More information about the es-discuss mailing list