Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// META: title=postMessage() DataCloneError: cloning source port
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_dom("DATA_CLONE_ERR", function()
{
channel.port1.postMessage("ports", [channel.port1]);
});
}, description);