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

Method on

deps/undici/undici.js:17113–17119  ·  view source on GitHub ↗

* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}

(event, listener)

Source from the content-addressed store, hash-verified

17111 * @returns {this}
17112 */
17113 on(event, listener) {
17114 if (event === "data" || event === "readable") {
17115 this[kReading] = true;
17116 this[kUsed] = true;
17117 }
17118 return super.on(event, listener);
17119 }
17120 /**
17121 * @param {string|symbol} event
17122 * @param {(...args: any[]) => void} listener

Callers 15

compare.jsFile · 0.45
runBenchmarkFunction · 0.45
runBenchmarkFunction · 0.45
requestFunction · 0.45
runFunction · 0.45
recursiveMethod · 0.45
scatter.jsFile · 0.45
mainFunction · 0.45
goFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected