blob: d6a4f59dbccf27cbe3669a7c8dfcdf5daa2ab92f (
plain)
1
2
3
4
5
6
7
8
9
|
// WebAssembly module containing a single function with an unreachable instruction
const binary = await Deno.readFile("./assets/unreachable.wasm");
const module = new WebAssembly.Module(binary);
const instance = new WebAssembly.Instance(module);
// Compare the stack trace with wasm_url.js, which compiles the WASM module with
// streaming APIs.
instance.exports.unreachable();
|