Open peter-jerry-ye opened 11 months ago
Steps to reproduce by slightly altering the example of https://docs.deno.com/runtime/manual/runtime/webassembly/using_streaming_wasm
curl https://wpt.live/wasm/incrementer.wasm -o incrementer.wasm
const { instance, module } = await WebAssembly.instantiateStreaming( fetch(new URL("./incrementer.wasm", import.meta.url)), ); const increment = instance.exports.increment as (input: number) => number; console.log(increment(41));
deno run --inspect-brk --allow-read ./index.ts
chrome://inspect
Expected output
42
Actual output
error: Uncaught (in promise) TypeError: WebAssembly.compile(): Argument 0 must be a buffer source at eventLoopTick (ext:core/01_core.js:178:11)
Also tested with VSCode debugger
Any news on this? I am getting the same trying to use @deno/graph wasm in a solution.
related https://github.com/denoland/vscode_deno/issues/708
Steps to reproduce by slightly altering the example of https://docs.deno.com/runtime/manual/runtime/webassembly/using_streaming_wasm
curl https://wpt.live/wasm/incrementer.wasm -o incrementer.wasm
to get the wasm filedeno run --inspect-brk --allow-read ./index.ts
chrome://inspect
to connect to the debugger and execute the programExpected output
42
on the consoleActual output
Also tested with VSCode debugger