myprogram.js:1412 Uncaught Error: invalid arg: map[string]interface {}
at $callDeferred (myprogram.js:1412)
at $panic (myprogram.js:1451)
at Object.ValueOf (js_notwasm.go:187)
at main (main.go:71)
at $init (myprogram.js:65744)
at $goroutine (myprogram.js:1471)
at $runScheduled (myprogram.js:1511)
at $schedule (myprogram.js:1527)
at $go (myprogram.js:1503)
at myprogram.js:65755
at myprogram.js:65758
This bit of code is successful using wasm, but fails when run with gopherjs:
Giving the error
The panic is from this bit of code
https://github.com/gopherjs/gopherwasm/blob/491e2f5cf3e461ccc9f47e79ac430009f7e09e4d/js/js_notwasm.go#L187
I will send a PR to fix in a moment.
I note that
[]interface{}
is missing fromValueOf
compared to the go/wasm implementation such as