File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ Buffer.isEncoding = function isEncoding (encoding) {
662662 }
663663}
664664
665- Buffer . concat = function concat ( list , length ) {
665+ Buffer . concat = function concat ( list , length = undefined ) {
666666 if ( ! Array . isArray ( list ) ) {
667667 throw new TypeError ( '"list" argument must be an Array of Buffers' )
668668 }
Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ declare module "socket:buffer" {
589589 export function isBuffer(b: any): boolean;
590590 export function compare(a: any, b: any): 0 | 1 | -1;
591591 export function isEncoding(encoding: any): boolean;
592- export function concat(list: any, length: any): Uint8Array;
592+ export function concat(list: any, length? : any): Uint8Array;
593593 export { byteLength };
594594 }
595595 export const kMaxLength: 2147483647;
You can’t perform that action at this time.
0 commit comments