deno
0ffed3e8 - fix(ext/node): support TypedArray and DataView targets in Buffer.copy() (#31734)

Commit
326 days ago
fix(ext/node): support TypedArray and DataView targets in Buffer.copy() (#31734) Closes https://github.com/denoland/deno/issues/31637 - `parallel/test-buffer-copy.js` now passes - Allow `Buffer.copy()` to accept any `ArrayBufferView` (TypedArray or DataView) as the target, matching Node.js behavior - Previously only `Uint8Array` targets were accepted, causing `TypeError` for other typed arrays
Author
Parents
Loading