summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-windows-hide.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-05-24 11:00:45 -0400
committercjihrig <cjihrig@gmail.com>2019-05-27 14:10:51 -0400
commit4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84 (patch)
tree2032a71c650abe5dc84ac38014b9d130f6da296b /test/parallel/test-child-process-windows-hide.js
parent476c3ec750fe2809721d352598fbc02620da829b (diff)
downloadandroid-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.tar.gz
android-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.tar.bz2
android-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.zip
child_process: simplify spawn argument parsing
This commit simplifies the object returned by normalizeSpawnArguments(). This does impact monkey patching, as illustrated by the changes in tests. PR-URL: https://github.com/nodejs/node/pull/27854 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-windows-hide.js')
-rw-r--r--test/parallel/test-child-process-windows-hide.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-windows-hide.js b/test/parallel/test-child-process-windows-hide.js
index 67ed18d733..42bca6471c 100644
--- a/test/parallel/test-child-process-windows-hide.js
+++ b/test/parallel/test-child-process-windows-hide.js
@@ -19,7 +19,7 @@ internalCp.ChildProcess.prototype.spawn = common.mustCall(function(options) {
}, 2);
internalCp.spawnSync = common.mustCall(function(options) {
- assert.strictEqual(options.options.windowsHide, true);
+ assert.strictEqual(options.windowsHide, true);
return originalSpawnSync.apply(this, arguments);
});