buffer: convert `buffer.transcode` to use internal/errors
buffer.transcode
is still using raw TypeError. This change is to convert it to use internal/errors
.
Ref: https://github.com/nodejs/node/issues/11273
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
buffer