MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / on

Method on

out/cli.cjs:56083–56088  ·  view source on GitHub ↗
(ev, ...args)

Source from the content-addressed store, hash-verified

56081 emit(ev, ...args) {
56082 if (ev === "data") {
56083 this._readableState.dataEmitted = true;
56084 } else if (ev === "error") {
56085 this._readableState.errorEmitted = true;
56086 }
56087 return super.emit(ev, ...args);
56088 }
56089 on(ev, ...args) {
56090 if (ev === "data" || ev === "readable") {
56091 this[kReading] = true;

Callers 2

addListenerMethod · 0.95
dumpMethod · 0.95

Calls 1

onMethod · 0.45

Tested by

no test coverage detected