diff --git a/lib/node.js b/lib/node.js index 29e2fcba4f8..70d848934b9 100644 --- a/lib/node.js +++ b/lib/node.js @@ -142,7 +142,7 @@ type child_process$execCallback = (error: ?child_process$Error, stdout: string | type child_process$execSyncOpts = { cwd?: string; input?: string | Buffer; - stdio?: Array; + stdio?: string | Array; env?: Object; shell?: string, uid?: number; @@ -169,7 +169,7 @@ type child_process$execFileCallback = (error: ?child_process$Error, stdout: Buff type child_process$execFileSyncOpts = { cwd?: string; input?: string | Buffer; - stdio?: Array; + stdio?: string | Array; env?: Object; uid?: number; gid?: number; @@ -216,7 +216,7 @@ type child_process$spawnRet = { type child_process$spawnSyncOpts = { cwd?: string; input?: string | Buffer; - stdio?: Array; + stdio?: string | Array; env?: Object; uid?: number; gid?: number; diff --git a/tests/node_tests/child_process/execSync.js b/tests/node_tests/child_process/execSync.js index 6fef2c035aa..171fd174883 100644 --- a/tests/node_tests/child_process/execSync.js +++ b/tests/node_tests/child_process/execSync.js @@ -6,3 +6,5 @@ var execSync = require('child_process').execSync; (execSync('ls', {encoding: 'buffer'}): Buffer); // returns Buffer (execSync('ls', {encoding: 'utf8'}): string); // returns string (execSync('ls', {timeout: '250'})); // error, no signatures match +(execSync('ls', {stdio: 'inherit'})); // error, no signatures match +(execSync('ls', {stdio: ['inherit']})); // error, no signatures match