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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17713

--- 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

console.reportError(exception);

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

window.reportError(exception);

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