Re: [w3c/ServiceWorker] Avoid executing the code in the All Fetch Listeners Are Empty algorithm. (PR #1676)

@annevk @youennf @asutherland This is a change to the "optimise for empty fetch listeners" feature (https://github.com/w3c/ServiceWorker/issues/1671).

Previously, we were looking at both regular listeners, and `{ handleEvent }` listeners. However, running getters during the check adds a bunch of complexity. With this change, the optimisation doesn't apply if there's a non-callable listener object (as in, `{ handleEvent }`).

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

Message ID: <w3c/ServiceWorker/pull/1676/c1493800744@github.com>

Received on Monday, 3 April 2023 07:13:31 UTC