summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js
blob: 7a3c8030d27581daccd610007ae87637dda0c120 (plain)
1
2
3
4
5
6
7
try {
  var source = new EventSource("../resources/message.py")
  postMessage([true, source.url])
  source.close()
} catch(e) {
  postMessage([false, String(e)])
}