Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Report invalid stream given to chid_process.spawn stdio

  • Loading branch information...
commit 8033bcfe0fb4162282c5cd9731621c6d66d9dea0 1 parent d406a82
@langpavel authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/child_process.js
View
3  lib/child_process.js
@@ -775,6 +775,9 @@ ChildProcess.prototype.spawn = function(options) {
} else {
// Cleanup
cleanup();
+ if(stdio && stdio.fd === null) {
+ throw new TypeError('Incorrect value for stdio: Stream is not opened');
+ }
throw new TypeError('Incorrect value for stdio stream: ' + stdio);
}
Please sign in to comment.
Something went wrong with that request. Please try again.