()
| 15592 | const BOMEncoding = BOMSniffing(bytes); |
| 15593 | let slice = 0; |
| 15594 | if (BOMEncoding !== null) { |
| 15595 | encoding = BOMEncoding; |
| 15596 | slice = BOMEncoding === "UTF-8" ? 3 : 2; |
| 15597 | } |
| 15598 | const sliced = bytes.slice(slice); |
| 15599 | return new TextDecoder(encoding).decode(sliced); |
| 15600 | } |
nothing calls this directly
no outgoing calls
no test coverage detected