Fix the wrong conversion of Int8Array and Uint{16, 32}Array js value to Java value
This CL fixes problems that -1 of Int8Array is converted to 255 since it is the casting as the char type and that a maximum value of Uint{16, 32}Arrays are converted to -1 since they are the casting as the signed types in TypedArraySerializerImpl. For Uint32Array, this CL serializes/deserializes the value as the binary type since base::Value supports the only int for the integer type. Bug: 1148997 Change-Id: I52af228070606e4cd3f293dd80e4f0ca53b6b082 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2589535Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Richard Coles <torne@chromium.org> Reviewed-by:
Shimi Zhang <ctzsm@chromium.org> Commit-Queue: Miyoung Shin <myid.shin@igalia.com> Cr-Commit-Position: refs/heads/master@{#841033}
Showing
Please register or sign in to comment