chromium/third_party/blink/web_tests/http/tests/serviceworker/resources/fetch-event-async-add-test-worker.js

var eventHandler = async function (event) {
  event.respondWith(new Response('codeSupposedUnreachable'));
};

setTimeout(() => {
  self.addEventListener('fetch', eventHandler);
}, 1);