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: Thu, 05 May 2011 23:18:08 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QI7o8-0006KO-1u@jessica.w3.org>
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

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