-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebAssembly streaming API fails with inspector #21508
Comments
Any news on this? I am getting the same trying to use @deno/graph wasm in a solution. |
related denoland/vscode_deno#708 |
FYI, a workaround for this is: const response = await fetch(new URL("./incrementer.wasm", import.meta.url));
const buffer = await response.arrayBuffer();
const { instance, module } = await WebAssembly.instantiateStreaming(
buffer
);
const increment = instance.exports.increment as (input: number) => number;
console.log(increment(41)); There must be a mismatch with the type check or implementation |
Could this issue be caused by the |
I'm not quite sure. I tried with |
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
The text was updated successfully, but these errors were encountered: