async_hooks: updates async_hooks.js to use the new internal/errors.js structure
Follows the instructions on #11273 (closed) to migrate async_hooks.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks