[Bug 19571] .length should count optional arguments

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19571

--- Comment #6 from Aryeh Gregor <ayg@aryeh.name> ---
Thanks for the link, Rick!  I read through it briefly, and didn't come away
with any specific reasons to stick with the current spec other than "it better
matches existing built-ins, and we've discussed this detail far more than its
importance warrants, so please let's just stick with what we have".  To be
honest, though, that doesn't seem like a bad reason to me.  Even leaving aside
the rest parameter, .length is of dubious value anyway.  Plus, three out of
four browser engines just always set .length to 0 for WebIDL operations, so
it's not like it's really going to be useful to anyone anyway.

I still favor changing it based on the arguments I've seen so far, but if the
ES people have discussed it a lot and change looks unlikely, I'm not going to
try arguing.  It's not very important and we all have better things to do.  So
I'd be okay with WONTFIX as a resolution here, and Mozilla can land the change
to match the WebIDL spec.

(An alternative would be for WebIDL to deviate from ES, but that seems even
less desirable.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Saturday, 20 October 2012 17:52:38 UTC