(input: any)
| 58 | } |
| 59 | |
| 60 | function safeToString(input: any): string { |
| 61 | try { |
| 62 | const s = input.toString() |
| 63 | return typeof s === "string" ? s : String(s) |
| 64 | } catch { |
| 65 | return "[toString threw]" |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /** @internal */ |
| 70 | export function formatPropertyKey(name: PropertyKey): string { |