()
| 503 | } |
| 504 | |
| 505 | private cleanup() { |
| 506 | this.readState = ReadState.Consumed; |
| 507 | this.buffer = undefined; |
| 508 | this.visited = undefined; |
| 509 | this.item = undefined; |
| 510 | this.root = undefined; |
| 511 | this.prePush = undefined; |
| 512 | } |
| 513 | |
| 514 | destroy(error?: Error): this { |
| 515 | if (error) this.emit('error', error); |