chromium/third_party/blink/web_tests/wpt_internal/ai/test-shared-worker.js

self.importScripts("resources/utils.js");

self.onconnect = async e => {
  const port = e.ports[0];
  port.postMessage(await testPromptAPI());
};