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: Sat, 23 Jun 2012 12:36:46 +1000
Message-ID: <4FE52BBE.3050501@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:
> All right.  Constructors for Web IDL exceptions do not explicitly invoke
> a superclass' constructor, but they do everything in
> http://es5.github.com/#x15.11.7.2 except set [[Class]] to "Error".  It
> might be good to have a note to say that exception objects are intended
> to be errors, so any non-standard things that appear on Error objects
> like stack traces and line numbers should also appear on them.

I made this change:


Received on Saturday, 23 June 2012 02:37:24 UTC

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