W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

[Bug 11857] getData() with no or too many arguments should throw

From: <bugzilla@jessica.w3.org>
Date: Wed, 11 May 2011 05:29:16 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QK1z2-0000E5-JL@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11857

--- Comment #10 from Hallvord R. M. Steen <hallvord@opera.com> 2011-05-11 05:29:15 UTC ---
(In reply to comment #8)
> What is special about getData() here?

*If* most other methods defined by the implementation do not throw when called
with too many or too few arguments, doing so makes getData() special.

I don't know if that is the case. 

Having thought a bit more, I now think it would make sense to throw by default,
because AFAIK WebIDL already has a way to mark methods that accept a variable
number of arguments. Going forward, spec authors should be required to mark up
those methods accordingly and the rest should throw.

If Cameron agrees with that we can close this bug again :-)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 11 May 2011 05:29:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:10 UTC