(channel)
| 68 | } |
| 69 | |
| 70 | function markActive(channel) { |
| 71 | // eslint-disable-next-line no-use-before-define |
| 72 | ObjectSetPrototypeOf(channel, ActiveChannel.prototype); |
| 73 | channel._subscribers = []; |
| 74 | channel._stores = new SafeMap(); |
| 75 | } |
| 76 | |
| 77 | function maybeMarkInactive(channel) { |
| 78 | // When there are no more active subscribers or bound, restore to fast prototype. |