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

Method _dispatch

test/fixtures/wpt/resources/channel.sub.js:220–228  ·  view source on GitHub ↗
(type, data)

Source from the content-addressed store, hash-verified

218 };
219
220 _dispatch(type, data) {
221 let listeners = this.eventListeners[type];
222 if (listeners) {
223 // If any listener throws we end up not calling the other
224 // listeners. This hopefully makes debugging easier, but
225 // is different to DOM event listeners.
226 listeners.forEach(fn => fn({type, data}));
227 }
228 };
229
230 }
231

Callers 7

connectMethod · 0.95
closeMethod · 0.95
readMessageMethod · 0.80
WindowTestEnvironmentFunction · 0.80
testharness.jsFile · 0.80
WindowTestEnvironmentFunction · 0.80
testharness.jsFile · 0.80

Calls 2

forEachMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected