You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perfect, all working as intended. But we are using a WebAssembly.instantiate which MDN advises against. 4. Let's use the suggested method instead: WebAssembly.instantiateStreaming.
What version of Bun is running?
1.1.42
What platform is your computer?
Linux 5.15.153.1-microsoft-standard-WSL2 x86_64 unknown, Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
The WebAssembly class is missing the suggested method for interacting with Wasm. This causes compatibility issues compared to node.
Instead of
WebAssembly.instantiateStreaming()
I need to useWebAssembly.instantiate()
.add.wasm
index.ts
Perfect, all working as intended. But we are using a
WebAssembly.instantiate
which MDN advises against. 4. Let's use the suggested method instead:WebAssembly.instantiateStreaming
.This same example is reproducible on Windows native, as well as Linux native
What is the expected behavior?
The signature conforms to node, or the wasm compatibility for bun is corrected to "partially implemented"
bun/docs/runtime/nodejs-apis.md
Line 444 in 14b44ae
What do you see instead?
I text patch my node_modules after installing. I add a simple implementation to the next best js file
Additional information
instantiateStreaming
is declared in the namespaceWebAssembly
for mainbun/packages/bun-types/wasm.d.ts
Line 263 in 14b44ae
aswell as 1.1.42
https://github.com/oven-sh/bun/blob/bun-v1.1.42/packages/bun-types/wasm.d.ts#L263
The text was updated successfully, but these errors were encountered: