mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
In case a fd option is given to fs.createReadStream a read will instantly happen. But in the edge case where fd point to an empty file and .pause() was executed instantly, the end event would emit since no async wait was between fs.createReadStream and the file read there emits end.