chromium/third_party/blink/web_tests/http/tests/serviceworker/resources/invalid-code-cache-worker.js

self.addEventListener('install', event => {
  event.waitUntil(caches.open('test').then(
      cache =>
      cache.put(
          new Request('./invalid.js'),
          new Response('(,);',
          {headers: [['content-type', 'text/javascript']]}))));
});