Clarification on function default param values
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss