child_process: refactor internal/child_process.js
- Prefer === to == where possible
- Remove condition that will always be false
- Prefer for-loop statements to forEach where possible for perfomance reasons
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
child_process