blob: 30012962d8606917b7c9f731c910427b71d47a47 (
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("DataCloneError", function() {
channel.port1.postMessage("ports", [channel.port1]);
});
});
</script>
|