async_hooks: expose list of types
Ref: https://github.com/nodejs/node/pull/13561#issuecomment-307555956
Also refactor JS type names allocation, so it provided by asunc_hooks
/cc @nodejs/async_hooks
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks,timers,process