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

I would like to advocate for "let the user do the bad thing if they want". Remember, top-level await is largely sugar over what would be accomplishable today. (Powerful sugar, because of how it allows dependencies to abstract things away, but still.)

We don't prevent people from doing the following:

```js
(async () => {
  await delay(100);
  self.onfetch = e => ...;
})();
```

and we should similarly not prevent them from doing the following:

```js
await delay(100);
self.onfetch = e => ...;
```

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

Received on Monday, 10 June 2019 18:56:38 UTC