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
❯ node --experimental-wasm-reftypes .
const wasmModule = new WebAssembly.Module(bytes);
^
CompileError: WebAssembly.Module(): Compiling function#99:"__externref_table_alloc" failed: local.tee[0] expected type i32, found ref.null of type externref @+39165
I think this error is related to the modified version of v8 that Nodejs is using, because I can load my WebAssembly module in latest Chrome with v8 8.7.
The text was updated successfully, but these errors were encountered:
Node.js does very few modifications to V8. I think it's more likely that this experimental API requires build option to be enabled or some compiler flag.
Related ticket in the wasm-bindgen repository:
rustwasm/wasm-bindgen#2274
With the latest Nodejs release and also with other Nodejs versions with updated v8 releases from these branches:
https://github.com/targos/node/tree/v8-88
https://github.com/targos/node/tree/v8-87-v15.x
I get an error when trying to run my Rust application compiled to WebAssembly with reference types enabled like this:
I think this error is related to the modified version of v8 that Nodejs is using, because I can load my WebAssembly module in latest Chrome with v8 8.7.
The text was updated successfully, but these errors were encountered: