Golang1.13 updates

Update travis to work with golang1.13 + update wasm code
This commit is contained in:
Hugo Arregui
2019-09-07 13:50:55 -03:00
committed by Sean DuBois
parent 59f78adf84
commit 06733a856b
3 changed files with 8 additions and 8 deletions

View File

@@ -162,7 +162,7 @@ func recoveryToError(e interface{}) error {
func uint8ArrayValueToBytes(val js.Value) []byte {
result := make([]byte, val.Length())
jsResult := js.TypedArrayOf(result)
jsResult.Call("set", val)
js.CopyBytesToGo(result, val)
return result
}