blob: 3558987476bdd89dde27e5958c2de39679656f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE html>
<title> postMessage(): cloning source port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
var channel = new MessageChannel();
channel.port1.start();
assert_throws_dom("DataCloneError", function() {
channel.port1.postMessage("ports", [channel.port1]);
});
});
</script>
|