W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 28 Aug 2013 05:12:41 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23056-3890-GqvSwJ7RVX@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC