(chunk: string)
| 215 | |
| 216 | return { |
| 217 | push(chunk: string) { |
| 218 | pending += chunk; |
| 219 | const lines = pending.split(/\r?\n/); |
| 220 | pending = lines.pop() ?? ""; |
| 221 | for (const line of lines) forwardLine(line); |
| 222 | }, |
| 223 | flush() { |
| 224 | if (!pending) return; |
| 225 | forwardLine(pending); |
no test coverage detected