mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
buffer: correct indexOf() error message
PR-URL: https://github.com/nodejs/node/pull/29217 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
bb1af6c82f
commit
5dc5cfba7d
4 changed files with 4 additions and 3 deletions
|
@ -907,7 +907,7 @@ function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
|||
}
|
||||
|
||||
throw new ERR_INVALID_ARG_TYPE(
|
||||
'value', ['string', 'Buffer', 'Uint8Array'], val
|
||||
'value', ['number', 'string', 'Buffer', 'Uint8Array'], val
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue