()
| 5 | * Safe to call multiple times — only sets the global once. |
| 6 | */ |
| 7 | export function ensureDOMParser(): void { |
| 8 | if (typeof globalThis.DOMParser === "undefined") { |
| 9 | (globalThis as Record<string, unknown>).DOMParser = DOMParser; |
| 10 | } |
| 11 | } |
no outgoing calls
no test coverage detected