test: refactor test-cluster-send-deadlock to use arrow functions
In test/parallel/test-cluster-send-deadlock.js
, callbacks use
anonymous closure functions. It is safe to replace them with arrow
functions since these callbacks don't contain references to this
,
super
or arguments
. This results in shorter functions.
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