Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>A test page that messes with a given SharedArrayBuffer via MessageChannel</title>
<script src="test-incrementer.js"></script>
<script>
const channel = new MessageChannel();
window.parent.postMessage(channel.port2, '*', [channel.port2]);
setupDestinationIncrementer(channel.port1, channel.port1);
</script>