We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fd75d commit 885c7a3Copy full SHA for 885c7a3
1 file changed
lib/buffer.js
@@ -633,11 +633,7 @@ Buffer.concat = function concat(list, length) {
633
pos += buf.length;
634
}
635
636
- // Note: `length` is always equal to `buffer.length` at this point
637
if (pos < length) {
638
- // Zero-fill the remaining bytes if the specified `length` was more than
639
- // the actual total length, i.e. if we have some remaining allocated bytes
640
- // there were not initialized.
641
TypedArrayPrototypeFill(buffer, 0, pos, length);
642
643
return buffer;
0 commit comments