joyent/node — pull request #6528 by tasogarepg (2013-11-16 12:31:08+00:00)
Title: stream: fix never closing when a last chunk is empty

In the following cases, Stream never finish.

var ws = fs.createWriteStream('/path/to/file');
ws.on('finish', function() {});
ws.write('abcd', 'utf8');
ws.write('', 'utf8');
ws.end();