chromium/third_party/blink/web_tests/external/wpt/resource-timing/resources/shared-worker.js

self.onconnect = e => {
  e.ports[0].postMessage(performance.timeOrigin);
}