mirror of
https://github.com/golang/go
synced 2024-11-23 18:30:06 -07:00
c468ad0417
The typed arrays returned by TypedArrayOf were backed by WebAssembly memory. They became invalid each time we grow the WebAssembly memory. This made them very error prone and hard to use correctly. This change removes TypedArrayOf completely and instead introduces CopyBytesToGo and CopyBytesToJS for copying bytes between a byte slice and an Uint8Array. This breaking change is still allowed for the syscall/js package. Fixes #31980. Fixes #31812. Change-Id: I14c76fdd60b48dd517c1593972a56d04965cb272 Reviewed-on: https://go-review.googlesource.com/c/go/+/177537 Run-TryBot: Richard Musiol <neelance@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
benchmark_test.go | ||
cbc_aes_test.go | ||
cbc.go | ||
cfb_test.go | ||
cfb.go | ||
cipher_test.go | ||
cipher.go | ||
common_test.go | ||
ctr_aes_test.go | ||
ctr_test.go | ||
ctr.go | ||
example_test.go | ||
export_test.go | ||
gcm_test.go | ||
gcm.go | ||
io.go | ||
ofb_test.go | ||
ofb.go | ||
xor_amd64.go | ||
xor_amd64.s | ||
xor_generic.go | ||
xor_ppc64x.go | ||
xor_ppc64x.s | ||
xor_test.go |