()
| 119 | fail(new Error(`Sidecar exited before ready with code ${code}`)) |
| 120 | } |
| 121 | const cleanup = () => { |
| 122 | clearTimeout(timeout) |
| 123 | child.off("message", onMessage) |
| 124 | child.off("exit", onExit) |
| 125 | } |
| 126 | |
| 127 | child.on("message", onMessage) |
| 128 | child.on("exit", onExit) |