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

Function initEventTarget

lib/internal/event_target.js:553–558  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

551}
552
553function initEventTarget(self) {
554 self[kEvents] = new SafeMap();
555 self[kMaxEventTargetListeners] = EventEmitter.defaultMaxListeners;
556 self[kMaxEventTargetListenersWarned] = false;
557 self[kHandlers] = new SafeMap();
558}
559
560class EventTarget {
561 // Used in checking whether an object is an EventTarget. This is a well-known

Callers 3

constructorMethod · 0.85
initNodeEventTargetFunction · 0.85
createPerformanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…