chromium/third_party/blink/web_tests/external/wpt/streams/transferable/resources/create-wasm-module.js

// There aren't many cloneable types that will cause an error on
// deserialization. WASM modules have the property that it's an error to
// deserialize them cross-site, which works for our purposes.
async function createWasmModule() {
  // It doesn't matter what the module is, so we use one from another
  // test.
  const response =
        await fetch("/wasm/serialization/module/resources/incrementer.wasm");
  const ab = await response.arrayBuffer();
  return WebAssembly.compile(ab);
}