(code: string)
| 140 | }; |
| 141 | |
| 142 | export const recoverExecutionBody = (code: string): string => { |
| 143 | const source = extractCandidateSource(code); |
| 144 | if (!source) return ""; |
| 145 | |
| 146 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: Babel parser throws for malformed candidate code, then recovery falls back to heuristics |
| 147 | try { |
| 148 | return renderParsedBody(source); |
| 149 | } catch { |
| 150 | return renderHeuristicBody(source); |
| 151 | } |
| 152 | }; |
no test coverage detected