Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test,doc: clarify
buf.indexOf(num)
input range
Hopefully clarify the behaviour of `buffer.indexOf()` and `buffer.includes()` for numbers in that they will be truncated to uint8s. Add tests for that behaviour. Fixes: #7591 PR-URL: #7611 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
- Loading branch information