blob: a0922efd91c2eb9ca5cd98bfd6c942b1a99a17b9 [file] [log] [blame]
<!DOCTYPE html>
<title>Verify that calling postMessage with an empty ArrayBuffer is valid.</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function(t) {
const arrayBuffer = new ArrayBuffer(0);
const { port1 } = new MessageChannel();
port1.postMessage(arrayBuffer, [ arrayBuffer ]);
}, "Calling postMessage with an empty ArrayBuffer is valid.");
</script>