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

Method ref

lib/internal/worker/io.js:439–445  ·  view source on GitHub ↗

* @returns {BroadcastChannel}

()

Source from the content-addressed store, hash-verified

437 * @returns {BroadcastChannel}
438 */
439 ref() {
440 if (!isBroadcastChannel(this))
441 throw new ERR_INVALID_THIS('BroadcastChannel');
442 if (this[kHandle])
443 this[kHandle].ref();
444 return this;
445 }
446
447 // The unref() method is Node.js specific and not part of the standard
448 // BroadcastChannel API definition. Typically we shouldn't extend Web

Callers

nothing calls this directly

Calls 2

isBroadcastChannelFunction · 0.85
refMethod · 0.65

Tested by

no test coverage detected