(obj)
| 728 | } |
| 729 | |
| 730 | function mapError(obj) { |
| 731 | const error = new Error(obj.message); |
| 732 | error.code = obj.code; |
| 733 | return error; |
| 734 | } |
| 735 | |
| 736 | function objError(error) { |
| 737 | if (error instanceof Error || typeof error === 'string') { |
no outgoing calls
no test coverage detected