async_hooks: use CHECK instead of throwing error
SetupHooks is only available via process.binding('async_wrap')
, so
there's no reason it shouldn't be called with the appropriate arguments,
since it is an internal-only function. The only place this function is
used is lib/internal/async_hooks.js
.
cc @jasnell
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks