test: modernize JS and tighten equality checking in test-child-process-detached
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
Cleanup according to nodejs/code-and-learn#56