errors,tty: migrate to use internal/errors.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
tty, errors
ref: #11273 (closed) This is my first contribution I read and understood the contribution guidelines, please review and suggest. @jasnell Thanks.