Re: a more JavaScripty binding for exceptions

Cameron McCormack:
> Here is a proposal for changing this:
> 
> * IDL exceptions will be allowed to inherit from other exceptions
> 
> * exceptions not declared to inherit from another will inherit from
>   the Error prototype in the JS binding
…
> * in JS, each exception constructor function will take a single argument
>   for the exception message, just like the built-in Error objects do

This has been done now: http://dev.w3.org/2006/webapi/WebIDL/#es-exceptions

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Tuesday, 12 April 2011 02:58:03 UTC