Skip to content

Commit

Permalink
Add a test for transferring a WebAssembly ArrayBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed May 10, 2019
1 parent 1431727 commit e92b4f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wasm/serialization/arraybuffer/transfer.window.js
@@ -0,0 +1,6 @@
test(() => {
const buffer = new WebAssembly.Memory({initial: 4}).buffer;
assert_throws(new TypeError(), () => {
postMessage('foo', '*', [buffer]);
});
});

0 comments on commit e92b4f5

Please sign in to comment.