mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
buffer: correct concat() error message
PR-URL: https://github.com/nodejs/node/pull/29198 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
6afd1a3dc1
commit
775048d54c
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -525,7 +525,7 @@ Buffer.concat = function concat(list, length) {
|
||||
// TODO(BridgeAR): This should not be of type ERR_INVALID_ARG_TYPE.
|
||||
// Instead, find the proper error code for this.
|
||||
throw new ERR_INVALID_ARG_TYPE(
|
||||
`list[${i}]`, ['Array', 'Buffer', 'Uint8Array'], list[i]);
|
||||
`list[${i}]`, ['Buffer', 'Uint8Array'], list[i]);
|
||||
}
|
||||
_copy(buf, buffer, pos);
|
||||
pos += buf.length;
|
||||
|
||||
Reference in new issue
Block a user