Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/node.js b/src/node.js
- index f42bff5..ff32446 100644
- --- a/src/node.js
- +++ b/src/node.js
- @@ -251,6 +251,9 @@
- stdout._type = "pipe";
- }
- + // For supporting legacy API we put the FD here.
- + stdout.fd = fd;
- +
- return stdout;
- });
- @@ -259,6 +262,8 @@
- stderr.readable = false;
- stderr.write = process.binding('stdio').writeError;
- stderr.end = stderr.destroy = stderr.destroySoon = function() { };
- + // For supporting legacy API we put the FD here.
- + stderr.fd = 2;
- process.__defineGetter__('stdin', function() {
- if (stdin) return stdin;
- @@ -278,6 +283,9 @@
- stdin.readable = true;
- }
- + // For supporting legacy API we put the FD here.
- + stdin.fd = fd;
- +
- return stdin;
- });
Add Comment
Please, Sign In to add comment