Skip to content

buffer: always allocate typed arrays outside heap

By default v8 allocates typed arrays <= 64 bytes inside the v8 heap. In these cases the memory pointer returned by Buffer::Data() can change while the memory is being operated on. Resolve by passing a flag that forces all typed arrays outside the v8 heap.

Fixes: 74178a56 "buffer: construct Uint8Array in JS"

R=@indutny R=@bnoordhuis

Merge request reports

Loading