(filename: string, version: string)
| 29 | ]; |
| 30 | |
| 31 | async function fetchUnicodeData(filename: string, version: string) { |
| 32 | const res = await fetch( |
| 33 | `https://www.unicode.org/Public/${version}/ucd/${filename}`, |
| 34 | ); |
| 35 | |
| 36 | if (!res.ok) { |
| 37 | throw new Error(`Failed to fetch ${filename}: status ${res.status}`); |
| 38 | } |
| 39 | |
| 40 | return await res.text(); |
| 41 | } |
| 42 | |
| 43 | const EffectiveWidth = { |
| 44 | Zero: 0, |
no outgoing calls
no test coverage detected