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

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