A way of explicitly reporting exceptions
Boris Zbarsky
bzbarsky at MIT.EDU
Mon Jun 23 13:25:34 PDT 2014
On 6/23/14, 4:17 PM, Kevin Reid wrote:
> Clarification: I meant how promptly the listener is invoked (independent
> of the error case).
Oh, yes. Calling the callback itself off a timeout is a non-starter. I
assume that Tab was talking about rethrowing the exception off a timeout.
> and in fact allows observably detecting whether an exception is
> caught and rethrown or just not caught.
>
> I did not intend it to do so. Could you explain?
Sorry, observably detecting via a debugger, not from the script itself.
> (You can notice rethrows and things by inspecting the stack trace, but I
> assume that's not what you meant.)
That's an interesting issue too. Right now I believe browsers can
internally rethrow an exception without changing its stack trace... But
there is no way for script to do that.
-Boris
More information about the es-discuss
mailing list