Skip to content

v8: fix offsets for TypedArray deserialization

Fix the offset calculation for deserializing TypedArrays that are not aligned in their original buffer.

Since byteOffset refers to the offset into the source Buffer instance, not its underlying ArrayBuffer, that is what should be passed to buffer.copy.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

v8

Merge request reports

Loading