forked from joejulian/gio
edec032ae6
Now that syscall/js.TypedArrayOf is going away in Go 1.13 (sse https://golang.org/issue/31980), copying byte slices to JS before use is necessary. To avoid garbage, re-use a single buffer for all transfers. Signed-off-by: Elias Naur <mail@eliasnaur.com>