test: use arrow functions in async-hooks tests
Convert all anonymous callback functions in test/async-hooks/*.js
to use arrow functions.
writing-tests.md
states to use arrow functions when appropriate.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines