Re: [w3c/ServiceWorker] async waitUntil microtask issue (#1213)

Ohhh I may be wrong about this. All the above tests in my last comment actually should not throw.

The reason is the [microtask checkpoint](https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint) at the end of the event dispatcher does not finish until there are no queued microtasks. So in these test cases, the event dispatch flag keeps the event active even though pending promise count reaches 0 at some points.

-- 
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/1213#issuecomment-473153703

Received on Friday, 15 March 2019 04:21:12 UTC