chromium/third_party/blink/web_tests/external/wpt/eventsource/shared-worker/eventsource-constructor-url-bogus.js

onconnect = function(e) {
try {
  var port = e.ports[0]
  var source = new EventSource("http://this is invalid/")
  port.postMessage([false, 'no exception thrown'])
  source.close()
} catch(e) {
  port.postMessage([true, e.code])
}
}