child_process: simplify spawn argument parsing
This commit simplifies the object returned by normalizeSpawnArguments()
. In general, this simplifies the code by removing options
vs. opts
logic.
This does impact monkey patching, as illustrated by the changes in tests. For that reason, I'm conservatively labeling as semver-major. If anyone disagrees, feel free to remove the label.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines