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

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

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cam@mcc.id.au

--- Comment #5 from Cameron McCormack <cam@mcc.id.au> 2011-05-05 23:18:07 UTC ---
Please note that the plan is to make functions calls with too few or too many
arguments *not* to throw (mentioned in
http://lists.w3.org/Archives/Public/public-script-coord/2010OctDec/0094.html). 
`aDataTransfer.getData()` would thus be equivalent to
`aDataTransfer.getData("undefined")`.

raises() clauses are entirely optional -- implementations of IDL operations are
allowed to throw exceptions that are not listed in a raises() clause.  Also,
TypeError and SyntaxError are not concepts that exist at the IDL level.  Only
exceptions explicitly defined in IDL can be listed there.  (It may make sense
to change that, in the spirit of "serve JS first, allow other languages
second".)

-- 
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 Thursday, 5 May 2011 23:18:09 UTC