Re: Should Exceptions be Errors in the ECMAScript bindings?

On Fri, Jun 22, 2012 at 8:40 AM, Allen Wirfs-Brock
<allen@wirfs-brock.com> wrote:
> Note that while there isn't currently any  special standardized behavior for
> Error, implementations do have non-standard behaviors such as capturing
> stack traces.  This would have to be dealt with in the actual
> implementations but conceptually is captured by the super constructor call.

For what it is worth DOMExceptions in WebKit (V8 and JSC) now have
Error.prototype on their prototype chain. I had to manually hook up
the stack property using the V8 embedding APIs (JSC adds stack to all
thrown objects).

-- 
erik

Received on Friday, 22 June 2012 16:53:45 UTC