W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Should Exceptions be Errors in the ECMAScript bindings?

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 22 Jun 2012 16:51:50 +1000
Message-ID: <4FE41606.5080603@mcc.id.au>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Travis Leithead <Travis.Leithead@microsoft.com>, Erik Arvidsson <arv@chromium.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC