ryanmcgrath/wrench-js — pull request #19 by perfectworks (2012-02-20 14:17:37+00:00)
Title: LineReader.hasNextLine go to a endless loop when LineReader.buffer is empty

while(this.buffer.indexOf('\n') === -1) {
this.getBufferAndSetCurrentPosition(this.currentPosition);
if(this.currentPosition === -1) return false;
if(this.buffer.length === 0) return false; // add this line
}