(item)
| 324 | this.reporter[kEmitMessage](item.type, item.data); |
| 325 | } |
| 326 | #accumulateReportItem(item) { |
| 327 | if (item.type !== 'test:pass' && item.type !== 'test:fail') { |
| 328 | return; |
| 329 | } |
| 330 | this.#reportedChildren++; |
| 331 | if (item.data.nesting === 0 && item.type === 'test:fail') { |
| 332 | this.failedSubtests = true; |
| 333 | } |
| 334 | } |
| 335 | #drainReportBuffer() { |
| 336 | if (this.#reportBuffer.length > 0) { |
| 337 | ArrayPrototypeForEach(this.#reportBuffer, (ast) => this.#handleReportItem(ast)); |