blob: bb7ccd73df498ab896f79235432472f6b549aa63 (
plain)
1
2
3
4
5
6
7
8
|
const module = await WebAssembly.compileStreaming(
fetch("http://localhost:4545/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();
|