Closed hajimehoshi closed 6 years ago
As Global
or other things would be breaking change, my plan is:
syscall/js
laterThe problem is when to do 2. Whenever I do this, I need to provide advance warning.
The GopherJS version is around 1Mb smaller if "fmt" is not included, but reflect used instead:
panic(`fmt.Sprintf("invalid arg: %T", x) ` + reflect.TypeOf(x).String())
Maybe your point is not related to this issue? But sounds reasonable. I'd be happy if you could send a PR :-)
Fixed.
https://tip.golang.org/pkg/syscall/js/?GOOS=js&GOARCH=wasm
Global
,Null
andUndefined
are functions.InstanceOf
function.