Read the entire STDIN.
authorMike Bostock <mbostock@gmail.com>
Wed, 6 Mar 2013 04:35:49 +0000 (20:35 -0800)
committerMike Bostock <mbostock@gmail.com>
Wed, 6 Mar 2013 04:35:49 +0000 (20:35 -0800)
commitf83aca65b75a93dd030b80c7b6c3f76456c32a81
tree4b2789bd152a5c9cd8438b29df662eb3197a504a
parentaebafad41eab48f43ed649ce8c77e8f1528b50da
Read the entire STDIN.

The problem with reading synchronously from /dev/stdin is that you can get a
spurious EOF when the input buffer is empty, even if more content is coming. Now
STDIN is read from a loop, and only stops polling when all input has been read.
This fixes #70 #85 and other errors related to parsing large files on STDIN.
bin/uglifyjs