diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webmessaging/with-ports/026.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/with-ports/026.html b/testing/web-platform/tests/webmessaging/with-ports/026.html new file mode 100644 index 0000000000..2af90e6be3 --- /dev/null +++ b/testing/web-platform/tests/webmessaging/with-ports/026.html @@ -0,0 +1,13 @@ +<!doctype html> +<title>object with length as transferable</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id=log></div> +<script> +test(function() { + assert_throws_js(TypeError, function() { + postMessage('', '*', {length:1}); + }); +}); +</script> + |