* @returns {BroadcastChannel}
()
| 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 |
nothing calls this directly
no test coverage detected