(value: unknown)
| 86 | } |
| 87 | |
| 88 | function formatValue(value: unknown): string { |
| 89 | let strValue: string = String(value); |
| 90 | |
| 91 | // JSON.stringify will throw on circular references |
| 92 | try { |
| 93 | if (Array.isArray(value) || strValue === '[object Object]') { |
| 94 | strValue = JSON.stringify(value); |
| 95 | } |
| 96 | } catch (error) {} |
| 97 | return strValue.length > VALUE_STRING_LENGTH_LIMIT |
| 98 | ? strValue.substring(0, VALUE_STRING_LENGTH_LIMIT) + '…' |
| 99 | : strValue; |
| 100 | } |
| 101 | |
| 102 | function constructDetailsForInterpolation( |
| 103 | lView: LView, |
no test coverage detected
searching dependent graphs…