child_process: clone spawn options argument
authorcjihrig <cjihrig@gmail.com>
Fri, 23 Jan 2015 22:18:55 +0000 (17:18 -0500)
committercjihrig <cjihrig@gmail.com>
Mon, 26 Jan 2015 16:59:30 +0000 (11:59 -0500)
commit785481149d59fddead9007d469e2578204f24cfb
treee454fe86533f28a5cd3e8f1716bdcd20a97be503
parent88aaff9aa6dd2aa2baadaf9b8d5f08e89fb77402
child_process: clone spawn options argument

spawnSync() modifies the options argument. This commit makes
a copy of options before any modifications occur.

Fixes: https://github.com/iojs/io.js/issues/576
PR-URL: https://github.com/iojs/io.js/pull/579
Reviewed-By: Bert Belder <bertbelder@gmail.com>
lib/child_process.js
test/common.js
test/parallel/test-child-process-stdio.js