[Bug 23056] Function's length property is inconsistent with EcmaScript

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

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackalmage@gmail.com

--- Comment #8 from Tab Atkins Jr. <jackalmage@gmail.com> ---
(In reply to comment #7)
> > A better mapping is:
> 
> No, that's semantically different.  In your mapping, if I call foo(1, 2)
> that's the same as calling foo(1, 2, 0), but in the WebIDL behavior arg3
> does not have 0 as a value, or indeed any value at all.  It's simply "not
> passed".  As is arg5.  But arg4 has the value 5.

"Not passed" means passing undefined, so you could just pass that as the
default value.

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

Received on Wednesday, 28 August 2013 05:12:42 UTC