Revision 69b5681ee7aa5a028eb694b2c93bfd48c1ef08e4 authored by Florian Rivoal on 20 April 2018, 10:06:58 UTC, committed by Florian Rivoal on 20 April 2018, 10:17:40 UTC
Corresponds to the spec changes from https://github.com/w3c/csswg-drafts/issues/2510
1 parent e2f8447
Channel_postMessage_clone_port_error.htm
<!DOCTYPE html>
<html>
<head>
<title> postMessage() DataCloneError: cloning source port </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
var description = "Test Description: Throw a DataCloneError if transfer array in postMessage contains source port.";
test(function()
{
var channel = new MessageChannel();
channel.port1.start();
assert_throws("DATA_CLONE_ERR", function()
{
channel.port1.postMessage("ports", [channel.port1]);
});
}, description);
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...