doc: add note about timingSafeEqual for TypedArray
Since https://github.com/nodejs/node/pull/29657, timingSafeEqual
uses byteLength
instead of length
. When comparing different types (e.g., Uint8Array
and Uint16Array
), the result can depend on the byte order of the system architecture.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines