summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-constructor-no-new.any.js
blob: 48bc551130ca850c3dcba0fa5789d37248803e81 (plain)
1
2
3
4
5
6
7
test(function() {
  assert_throws_js(TypeError,
  function() {
    EventSource('');
  },
  "Calling EventSource constructor without 'new' must throw");
})