Re: Exceptions in event listeners triggered by dispatchEvent().

On Sun, Jun 2, 2013 at 7:10 PM, Glenn Maynard <glenn@zewt.org> wrote:
> I think exceptions from callbacks are handled explicitly in specs, eg. by
> saying something like "if the called function throws an exception, ...".
> Since the "invoke the event listeners" algorithm (step 4.7) doesn't say to
> do anything with exceptions, that means that nothing must be done with them,
> eg. discard them.  (Anne: correct?)  Maybe this could use a note, though.

It should reach window.onerror. Allan introduced new language
constructs in ES6 for this. I'm hoping that WebIDL/JSIDL will adopt
these and make them available to platform APIs (or platform APIs
should reference them directly, however we end up resolving that).
Then it should all be a bit clearer which exceptions propagate and
which are only for window.onerror.


--
http://annevankesteren.nl/

Received on Monday, 3 June 2013 09:34:06 UTC