W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

[Bug 17713] Exceptions thrown from event handlers should not be propagated

From: <bugzilla@jessica.w3.org>
Date: Sun, 04 Aug 2013 03:51:23 +0000
To: public-script-coord@w3.org
Message-ID: <bug-17713-3890-1hJCvXmf4u@http.www.w3.org/Bugs/Public/>

--- Comment #17 from Jonas Sicking <jonas@sicking.cc> ---
My perception is that the thing people were mostly upset about with
.dispatchEvent is that it does "magic". I.e. it does things that can't be
replicated in JS.

An easy way to fix that would be to add something like


This would do exactly the same reporting as we currently do for errors that are
thrown by event listeners (which I *think* is the same error reporting as we do
for unhandled errors?).

Or we could add something like


which would both fire window.onerror as well as do the appropriate error
reporting if that error went unhandled.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 4 August 2013 03:51:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:17 UTC