Collect a compact description of every Error subexpression.
(expr: BoxedExpression, out: string[])
| 34 | |
| 35 | /** Collect a compact description of every Error subexpression. */ |
| 36 | function collectErrors(expr: BoxedExpression, out: string[]): void { |
| 37 | if (expr.operator === 'Error') { |
| 38 | out.push(JSON.stringify(expr.json).slice(0, 200)); |
| 39 | return; |
| 40 | } |
| 41 | if (isFunction(expr)) for (const op of expr.ops) collectErrors(op, out); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Compute the set of heads that have a definition: CE built-ins (checked |
no test coverage detected