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
I have loaded my wasm with WebAssembly.instantiate and i want to check the available functions because I am not sure which one is the name to call. Is that possible ?? I saw in an example
const importObject: any = {
env: {
print: function (x: any) { console.log(x); } // map the zig function print to the JS function console.log(x)
},
};
const localModule1 = await WebAssembly.instantiate(LocalHello, importObject);
const fn = localModule1.instance.exports;
console.log(fn);
but it doesn't work.
The text was updated successfully, but these errors were encountered:
Checking the repository you suggested and loading the wasm using this library i get an error in the init function of the instance.exports.init() here. is this supported in this library ?? Thanks @cawfree
Hey,
I have loaded my wasm with
WebAssembly.instantiate
and i want to check the available functions because I am not sure which one is the name to call. Is that possible ?? I saw in an examplebut it doesn't work.
The text was updated successfully, but these errors were encountered: