domain: refactor to use more primordials
FWIW I'm using ReflectApply
to replace uses of Function.prototype.apply
and Function.prototype.call
because it has less overhead (see https://github.com/nodejs/node/pull/35838#pullrequestreview-519781441 for more info).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passe -
commit message follows commit guidelines