Please sign in to comment.
readline: fix `line` event, if input emit 'end'
If an input stream would emit `end` event, like `fs.createReadStream`, then readline need to get the last line correctly even though that line isnt ended with `\n`.
- Loading branch information...
Showing with 30 additions and 3 deletions.