summaryrefslogtreecommitdiff
path: root/tests/testdata/run/wasm_url.js
blob: 71686ef7e198be25409b0ef7dabfcc1681876863 (plain)
1
2
3
4
5
6
7
8
const module = await WebAssembly.compileStreaming(
  fetch("http://localhost:4545/assets/unreachable.wasm"),
);
const instance = new WebAssembly.Instance(module);

// Compare the stack trace with wasm_unreachable.js, which compiles the WASM
// module with synchronous APIs.
instance.exports.unreachable();