summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/eventsource-constructor-url-bogus.any.js
blob: 53c3205e8a55d7d9c9c70806b9fd2c289841ebe5 (plain)
1
2
3
4
5
6
7
8
// META: global=window,worker
// META: title=EventSource: constructor (invalid URL)

test(() => {
  assert_throws_dom('SyntaxError', () => { new EventSource("http://this is invalid/"); });
});

done();