test,doc: clarify `buf.indexOf(num)` input range
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
buffer
Description of change
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.