Browse Source

fs: fix fs.readFileSync to work on real empty file

v0.9.1-release
Shigeki Ohtsu 13 years ago
committed by Ben Noordhuis
parent
commit
e3a2dd1b13
  1. 2
      lib/fs.js

2
lib/fs.js

@ -223,7 +223,7 @@ fs.readFileSync = function(path, encoding) {
if (size !== 0) {
done = pos >= size;
} else {
done = bytesRead > 0;
done = bytesRead >= 0;
}
}

Loading…
Cancel
Save