On Wed, 22 Feb 2012 15:27:41 +0100, João Eiras <[email protected]> wrote:
On Wed, 22 Feb 2012 00:00:24 +0100, Cameron McCormack <[email protected]>
wrote:
Web IDL already requires exception interface objects like DOMException
to be constructable, due to this:
http://dev.w3.org/2006/webapi/WebIDL/#es-exception-call
and them being Function objects. The constructor should take a single
argument which is the message.
DOMExceptions have both a code and a message. Perhaps the constructor
should be extended to include both.
code is legacy, but name would be good to expose.
--
Anne van Kesteren
http://annevankesteren.nl/