Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webmessaging/Channel_postMessage_clone_port_error.any.html - WPT Dashboard Interop Dashboard
- /webmessaging/Channel_postMessage_clone_port_error.any.worker.html - WPT Dashboard Interop Dashboard
// 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);