Re: [w3c/ServiceWorker] Top-level await integration for ServiceWorkers running modules (#1407)

> Also, top-level await would not be protected by a `waitUntil()`. In general we probably couldn't automatically keep it alive because then it would become an abuse vector.

I think we could work around that. We know what event we're starting up for, and we could take any start up time away from that event when/if we get that far. Similar to if you've got a sync infinite loop or some other expensive code at the top level.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1407#issuecomment-493976263

Received on Monday, 20 May 2019 12:58:30 UTC