buffer: improve ERR_BUFFER_OUT_OF_BOUNDS default
This commit changes the default message used by ERR_BUFFER_OUT_OF_BOUNDS
. Previously, the default message implied that the problematic was always a write, which is not accurate.
Fixes: https://github.com/nodejs/node/issues/29097
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines