Re: Should Exceptions be Errors in the ECMAScript bindings?

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:

http://dev.w3.org/2006/webapi/WebIDL/#es-exception-objects

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.544;r2=1.545;f=h

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