WICG / cookie-store

Asynchronous access to cookies from JavaScript
https://wicg.github.io/cookie-store/
Apache License 2.0
143 stars 35 forks source link

Explainer uses `await` in non-async function #119

Closed inexorabletash closed 4 years ago

inexorabletash commented 4 years ago

Explainer has

self.addEventListener('activate', (event) => {
  // Snapshot current state of subscriptions.
  const subscriptions = await self.registration.cookies.getSubscriptions();
  ....

This should be async (event) => ... for the await to be valid.