Andrea Giammarchi wrote:
You replied as if I took part in those conversations and forgot ...
that might be the case but AFAIK (indeed) is not.
You are on the list, this came up less than two months ago. Google site
search works, please use it. "site:mail.mozilla.org es-discuss undefined
defaulting" is one way, there are others.
However, I am not saying that explicit undefined should not result in
the default argument value, when specified, I am saying that passing
explicitly undefined should not be ignored.
Reading that looks like the agreement is that explicit or not, if an
argument has a default, it should be used when undefined is the
(un)received value and I agree on that.
Here we are saying that undefined would result in "a non argument" so
that whatever(undefined) would have an `arguments.length === 0` unless
I've misunderstood this part of the thread (which might be as well)
No, arguments.length would be 1 per ES6 -- that's important for both
delegation and varargs-style (arguments.length-based) dispatching.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss