diff --git a/src/js/fs.js b/src/js/fs.js index 6080b7a34a..66196624ad 100644 --- a/src/js/fs.js +++ b/src/js/fs.js @@ -449,8 +449,7 @@ try { // null must be pushed so the 'end' event will be emitted. self.push(null); } else { - self.push(bytes_read == self._buff.length ? - self._buff : self._buff.slice(0, bytes_read)); + self.push(self._buff.slice(0, bytes_read)); self.doRead(); } });