Bugfix: stdin fd (0) being ignored by node.File.

In the case of stdin options.fd is 0, which is considered false, therefore fd
gets set to null intead of 0.
http://groups.google.com/group/nodejs/msg/80849f6aa0b0eaa0
v0.7.4-release
Abe Fettig 2009-08-19 12:56:06 +02:00 committed by Ryan
parent 7aaab320b3
commit 53b3d6be35
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ node.fs.File = function (options) {
self.encoding = node.RAW; self.encoding = node.RAW;
} }
//node.debug("encoding: opts=" + options.encoding + " self=" + self.encoding); //node.debug("encoding: opts=" + options.encoding + " self=" + self.encoding);
self.fd = options.fd || null; self.fd = typeof options.fd != 'undefined' ? options.fd : null;
var actionQueue = []; var actionQueue = [];