(shouldClear = false)
| 588 | } |
| 589 | |
| 590 | private flushOutputBuffer(shouldClear = false) { |
| 591 | const { items, wasDeleted } = this.outputBuffer.getCache(); |
| 592 | if (!items.length) return; |
| 593 | if (wasDeleted) items.unshift(IGNORE_TEXT); |
| 594 | if (shouldClear) this.outputBuffer.clear(); |
| 595 | this.emit("data", items.join("")); |
| 596 | } |
| 597 | |
| 598 | private startOutputLoop() { |
| 599 | this.outputBuffer = new CircularBuffer<string>( |
no test coverage detected