chromium/third_party/blink/web_tests/external/wpt/eventsource/dedicated-worker/eventsource-url.js

try {
  var source = new EventSource("../resources/message.py")
  postMessage([true, source.url])
  source.close()
} catch(e) {
  postMessage([false, String(e)])
}