1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/testdata/run/wasm_url.js

9 lines
306 B
JavaScript
Raw Normal View History

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();