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

Method constructor

lib/diagnostics_channel.js:207–216  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

205
206class Channel {
207 constructor(name) {
208 this._subscribers = undefined;
209 this._stores = undefined;
210 this.name = name;
211 if (typeof name === 'string') {
212 this._index = dc_binding.getOrCreateChannelIndex(name);
213 }
214
215 channels.set(name, this);
216 }
217
218 static [SymbolHasInstance](instance) {
219 const prototype = ObjectGetPrototypeOf(instance);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected