fs: make 'end' work with ReadStream without 'start'
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 28 Dec 2012 17:31:47 +0000 (18:31 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 28 Dec 2012 17:33:51 +0000 (18:33 +0100)
commitc6e958d44d6674676581ced360530f85508121a2
treeb9fb349aa87a6588c31aef7fba4b3268024d0eb4
parent910e24b53da11a38afe0e44d5d2e74a7c30a0710
fs: make 'end' work with ReadStream without 'start'

Make `fs.createReadStream({ end: 42 })` work.

Before this commit, it worked only when used like this:
`fs.createReadStream({ start: 0, end: 42 })` - only when `start` was specified
by the caller.

Fixes #4423.
lib/fs.js