Small fixes
A selection of 80 fixes from 174 pull requests.
57.Waiting past a line ending
A chunk ending in CR already contained a complete line, but the parser pulled again and could encounter an unrelated failure. Emit immediately; only suppress a following LF.
12345657891011121213 pushLine(str.substring(from, indexOfCR)) if (str.length === indexOfCR + 1) { midCRLF = true from = str.length indexOfCR = -1 } else { pushLine(str.substring(from, indexOfCR)) from = indexOfCR + (indexOfLF === indexOfCR + 1 ? 2 : 1) indexOfCR = str.indexOf("\r", from) indexOfLF = str.indexOf("\n", from) } }}stringBuilder = stringBuilder + str.substring(from, str.length - (midCRLF ? 1 : 0))stringBuilder = stringBuilder + str.substring(from)