(value)
| 61 | } |
| 62 | |
| 63 | function stringifyLogValue(value) { |
| 64 | if (typeof value !== 'object' || value === null) { |
| 65 | return String(value) |
| 66 | } |
| 67 | |
| 68 | try { |
| 69 | return JSON.stringify(value) |
| 70 | } catch { |
| 71 | return '[unserializable]' |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Extract line and column from error stack or message |
no outgoing calls
no test coverage detected