chromium/third_party/blink/web_tests/external/wpt/html/cross-origin-embedder-policy/resources/fetch-in-dedicated-worker.js

self.addEventListener('message', async (e) => {
  const param = e.data;
  // Ignore network error.
  await fetch(param.url, param.init).catch(() => {});
  self.postMessage(param.url);
});