Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 191c913d833251d956e6ce09eda7ca8dd896713a 1 parent d8d90a2
@shigeki authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fs.js
View
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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.