mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 11:32:19 +08:00
Golang1.13 updates
Update travis to work with golang1.13 + update wasm code
This commit is contained in:

committed by
Sean DuBois

parent
59f78adf84
commit
06733a856b
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user