async_hooks: move statement
The fatalError function is overloaded to receive either an error or a string. Instead, it would be simpler to just always provide a error. Removed due to a conflict.
I also moved the restoreTmpHooks
call. It seemed to be more appropriate in the init function. Ref https://github.com/nodejs/node/pull/13755#issuecomment-312616004
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