mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 03:48:02 -05:00
9 lines
299 B
JavaScript
9 lines
299 B
JavaScript
|
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();
|