Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 1d56349

Browse files
Ms2gerjgraham
authored andcommitted
Bug 1551028 [wpt PR 16746] - Add a test for transferring a WebAssembly ArrayBuffer, a=testonly
Automatic update from web-platform-tests Add a test for transferring a WebAssembly ArrayBuffer See <whatwg/html#4603>. -- wpt-commits: e92b4f5a8819d195c5ee5807261cfaa46520dac6 wpt-pr: 16746
1 parent d00225b commit 1d56349

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test(() => {
2+
const buffer = new WebAssembly.Memory({initial: 4}).buffer;
3+
assert_throws(new TypeError(), () => {
4+
postMessage('foo', '*', [buffer]);
5+
});
6+
});

0 commit comments

Comments
 (0)