Re: Should Exceptions be Errors in the ECMAScript bindings?

Cameron McCormack:
> What would be required to make exception objects be true Error objects?
>   Is it sufficient to have Web IDL just say that they have [[Class]]
> "Error"?  Do Error objects have any standardised behaviour that you
> wouldn't get from just using prototype inheritance as Web IDL currently
> does?

There is also the fact that ({}).toString.call(aDOMException) needs to 
return "[object DOMException]".

Received on Friday, 22 June 2012 06:52:32 UTC