MCPcopy Create free account
hub / github.com/Faleij/json-stream-stringify / cleanup

Method cleanup

src/JsonStreamStringify.ts:505–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 2

_readMethod · 0.95
destroyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected