(data: string)
| 717 | // Without this, a crashy listener would also crash the Electron main process via |
| 718 | // process.uncaughtException (see emitOutput's defense-in-depth notes). |
| 719 | const handler = (data: string) => { |
| 720 | try { |
| 721 | callback(data); |
| 722 | } catch (err) { |
| 723 | log.warn(`[TerminalService] output listener threw for session ${sessionId}:`, err); |
| 724 | } |
| 725 | }; |
| 726 | emitter.on("data", handler); |
| 727 | |
| 728 | return () => { |
no outgoing calls
no test coverage detected