(stack)
| 168 | } |
| 169 | |
| 170 | function extractErrorMessage(stack) { |
| 171 | if (!stack) return '<unknown>'; |
| 172 | const m = RegExpPrototypeExec(/^\w+: ([^\n]+)/, stack); |
| 173 | return m?.[1] ?? stack; |
| 174 | } |
| 175 | |
| 176 | function convertResultToError(result) { |
| 177 | const { className, description } = result; |
no outgoing calls
no test coverage detected