diff options
author | cjihrig <cjihrig@gmail.com> | 2015-01-23 17:18:55 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2015-01-26 11:59:30 -0500 |
commit | 785481149d59fddead9007d469e2578204f24cfb (patch) | |
tree | e454fe86533f28a5cd3e8f1716bdcd20a97be503 /test/parallel/test-child-process-stdio.js | |
parent | 88aaff9aa6dd2aa2baadaf9b8d5f08e89fb77402 (diff) | |
download | android-node-v8-785481149d59fddead9007d469e2578204f24cfb.tar.gz android-node-v8-785481149d59fddead9007d469e2578204f24cfb.tar.bz2 android-node-v8-785481149d59fddead9007d469e2578204f24cfb.zip |
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>
Diffstat (limited to 'test/parallel/test-child-process-stdio.js')
-rw-r--r-- | test/parallel/test-child-process-stdio.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/parallel/test-child-process-stdio.js b/test/parallel/test-child-process-stdio.js index 2e1875a180..7292007f1a 100644 --- a/test/parallel/test-child-process-stdio.js +++ b/test/parallel/test-child-process-stdio.js @@ -13,3 +13,7 @@ child = common.spawnPwd(options); assert.equal(child.stdout, null); assert.equal(child.stderr, null); + +options = {stdio: 'ignore'}; +child = common.spawnSyncCat(options); +assert.deepEqual(options, {stdio: 'ignore'}); |