(child)
| 153 | |
| 154 | |
| 155 | #setupIPC(child) { |
| 156 | const handlers = { |
| 157 | __proto__: null, |
| 158 | parentToChild: (message) => child.send(message), |
| 159 | childToParent: (message) => process.send(message), |
| 160 | }; |
| 161 | this.#ipcHandlers.set(child, handlers); |
| 162 | process.on('message', handlers.parentToChild); |
| 163 | child.on('message', handlers.childToParent); |
| 164 | } |
| 165 | |
| 166 | destroyIPC(child) { |
| 167 | const handlers = this.#ipcHandlers.get(child); |
no test coverage detected