MCPcopy Index your code
hub / github.com/nodejs/node / onError

Method onError

lib/internal/streams/fast-utf8-stream.js:722–726  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

720 this.off('error', onError);
721 };
722 const onError = (err) => {
723 this.#flushPending = false;
724 cb(err);
725 this.off('drain', onDrain);
726 };
727
728 this.once('drain', onDrain);
729 this.once('error', onError);

Callers

nothing calls this directly

Calls 2

cbFunction · 0.70
offMethod · 0.45

Tested by

no test coverage detected