Re: [dom] Add EventListenerOptions and passive event listeners (#82)

>     <li><p>Call <var>listener</var>'s <b>callback</b>'s {{EventListener/handleEvent()}}, with
>     <var>event</var> as argument and <var>event</var>'s {{Event/currentTarget}} attribute value as
> -   <a>callback this value</a>. If this throws any exception, <a>report the exception</a>.
> +   <a>callback this value</a>.
> +
> +   <li>Clear <var>event</var>'s <a>in passive listener flag</a>.
> +
> +   <li>If the call to {{EventListener/handleEvent()}} threw any exception, <a>report the exception</a>.

Are you sure this is correct? Reporting the exception is synchronous. Seems like you could circumvent the passive restriction by storing the event somewhere and then throwing.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/82/files#r48823441

Received on Tuesday, 5 January 2016 08:55:14 UTC