Files
araxiapatch/vendor/github.com/therecipe/qt/qt_wasm.go
Turleynerd 2f6beb2065 full code
2023-09-02 04:14:49 -04:00

21 lines
381 B
Go

// +build js,wasm
package qt
import (
"syscall/js"
"unsafe"
)
func init() {
Module.Set("_callbackReleaseTypedArray", js.FuncOf(func(_ js.Value, args []js.Value) interface{} {
ReleaseTypedArray(unsafe.Pointer(uintptr(args[0].Int())))
return nil
}))
}
var Global = js.Global()
var Module = Global.Call("eval", "Module")
//TODO: func MakeWrapper(i interface{}) *js.Value