Skip to content

Commit

Permalink
fix: use TypedArray.subarray instead of .slice in Buffer.concat
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed Mar 18, 2024
1 parent 16a741e commit 5f5f9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core_js/map-std/src/internal/node_buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Buffer {
if (buf.length <= remaining) {
bytes.extend(buf.inner.data);
} else {
bytes.extend(buf.inner.data.slice(0, remaining));
bytes.extend(buf.inner.data.subarray(0, remaining));
}
}

Expand Down

0 comments on commit 5f5f9e4

Please sign in to comment.