Re: [dom] Make addEventListener throw for service worker optimization (#155)

> @@ -1065,6 +1065,15 @@ seen from the definition above, an <a>event listener</a> is a more broad concept
>  method, when invoked, must run these steps:
>  
>  <ol>
> + <li>
> +  <p>If the global object is a {{ServiceWorkerGlobalScope}} object and its associated
> +  <a>service worker</a>'s <a>script resource</a>'s <a>has ever been evaluated flag</a> is set,
> +  <a>throw</a> an {{InvalidStateError}} exception. [[!SW]]

I prefer just using TypeError.

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

Received on Wednesday, 3 February 2016 10:54:23 UTC