Browse files

Better avoiding of _length overrun

  • Loading branch information...
1 parent cea4cb5 commit d7bded9c91c29fd1198bfc969ca67411134f70d3 @isaacs isaacs committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dir-reader.js
View
2 lib/dir-reader.js
@@ -70,7 +70,7 @@ DirReader.prototype._read = function () {
}
me._index ++
- if (me._index >= me._length) {
+ if (me._index >= me.entries.length) {
if (!me._ended) {
me._ended = true
me.emit("end")

0 comments on commit d7bded9

Please sign in to comment.