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

onconnect = (event) => {
  const port = event.ports[0];
  port.onmessage = (event) => {
    eval(event.data);
  };
  port.postMessage('ready');
};