-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Description
Good day
I have wasm file (compiled with emscripten) that instantiated with js code and I'm trying to do same thing with wazero and I'm stuck on part with new WebAssembly.Global(...)
WebAssembly.instantiateStreaming(source, {
//...
env: {
__stack_pointer: new WebAssembly.Global({
"value": "i32",
"mutable": true
}, 78112),
_emscripten_get_now_is_monotonic: () => 1,
},
})
I do not have problems with functions like _emscripten_get_now_is_monotonic
I can add them like this
env.NewFunctionBuilder().
WithFunc(func() int32 { return 1 }).
Export("_emscripten_get_now_is_monotonic")
but how to add Global instead of function?
Metadata
Metadata
Assignees
Labels
No labels