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

Function emit

lib/internal/child_process.js:971–981  ·  view source on GitHub ↗
(event, message, handle)

Source from the content-addressed store, hash-verified

969 };
970
971 function emit(event, message, handle) {
972 if ('internalMessage' === event || target.listenerCount('message')) {
973 target.emit(event, message, handle);
974 return;
975 }
976
977 ArrayPrototypePush(
978 target.channel[kPendingMessages],
979 [event, message, handle],
980 );
981 }
982
983 function handleMessage(message, handle, internal) {
984 if (!target.channel)

Callers 1

gotFunction · 0.70

Calls 2

listenerCountMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…