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

Method constructor

lib/diagnostics_channel.js:354–362  ·  view source on GitHub ↗
(nameOrChannels)

Source from the content-addressed store, hash-verified

352
353class BoundedChannel {
354 constructor(nameOrChannels) {
355 for (let i = 0; i < boundedEvents.length; ++i) {
356 const eventName = boundedEvents[i];
357 ObjectDefineProperty(this, eventName, {
358 __proto__: null,
359 value: channelFromMap(nameOrChannels, eventName, 'BoundedChannel'),
360 });
361 }
362 }
363
364 get hasSubscribers() {
365 return this.start?.hasSubscribers ||

Callers

nothing calls this directly

Calls 1

channelFromMapFunction · 0.85

Tested by

no test coverage detected