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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11857

--- Comment #12 from Cameron McCormack <cam@mcc.id.au> 2011-06-21 05:49:03 UTC ---
(In reply to comment #10)
> 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 :-)

Sorry, I missed this comment until now.  Web IDL recently changed to throw if
too few arguments are passed, but to ignore any extra arguments.  Specs
shouldn't override this unless they have good reason to (e.g. web compatibility
concerns).  I haven't added any syntactic facility to do this overriding in the
IDL.

-- 
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 Tuesday, 21 June 2011 05:49:05 UTC