Skip to content

Commit ffd22c1

Browse files
committed
Revert "simplify"
This reverts commit 34adb7c.
1 parent 34adb7c commit ffd22c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/buffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ Buffer.concat = function concat(list, length) {
615615
TypedArrayPrototypeSet(buffer, buf, pos);
616616
} else {
617617
const src = new Uint8Array(
618-
buf.buffer,
619-
buf.byteOffset,
618+
TypedArrayPrototypeGetBuffer(buf),
619+
TypedArrayPrototypeGetByteOffset(buf),
620620
toCopy,
621621
);
622622
TypedArrayPrototypeSet(buffer, src, pos);

0 commit comments

Comments
 (0)