(value)
| 80 | } |
| 81 | |
| 82 | export function getBigNumberDisplayString(value) { |
| 83 | if (typeof value === 'bigint') return value.toString(); |
| 84 | if (!isBigNumberLike(value)) return String(value); |
| 85 | |
| 86 | if (typeof value.toString === 'function' && value.toString !== Object.prototype.toString) { |
| 87 | try { |
| 88 | const result = value.toString(); |
| 89 | if (typeof result === 'string' && result !== '[object Object]') { |
| 90 | return result; |
| 91 | } |
| 92 | } catch (_) {} |
| 93 | } |
| 94 | return rebuildBigNumberFromParts(value); |
| 95 | } |
| 96 | |
| 97 | function isInsideQuotedSegment(text, offset) { |
| 98 | let quote = ''; |
no test coverage detected