mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
8 lines
306 B
JavaScript
8 lines
306 B
JavaScript
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();
|