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

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78ggmfqpbzY3D2-WVDuz4GNs7=GWvm5GFLLd0KCjtvGGMw@mail.gmail.com>
On Sun, Jun 2, 2013 at 7:10 PM, Glenn Maynard <[email protected]> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.