summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webmessaging/with-ports/025.html
blob: 7af2a852ed603c317227621d1eaf51831171956c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<title>1 as ports</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
   assert_throws_js(TypeError, function() {
      postMessage('', '*', 1);
   });
});
</script>