test: change callback function to arrow function
requested to merge github/fork/rt33/refactor/test-domain-no-error-handler-abort-on-uncaught-9 into master
Refactored some callback functions to arrow functions This is practice on code-and-learn for contributing oss. nodejs/code-and-learn#78
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)
test