* @see https://w3c.github.io/FileAPI/#dom-filereader-readystate
()
| 15551 | dataURL += ";base64,"; |
| 15552 | const decoder = new StringDecoder2("latin1"); |
| 15553 | for (const chunk of bytes) { |
| 15554 | dataURL += btoa(decoder.write(chunk)); |
| 15555 | } |
| 15556 | dataURL += btoa(decoder.end()); |
| 15557 | return dataURL; |
| 15558 | } |
| 15559 | case "Text": { |
| 15560 | let encoding = "failure"; |
| 15561 | if (encodingName) { |
| 15562 | encoding = getEncoding(encodingName); |
| 15563 | } |
| 15564 | if (encoding === "failure" && mimeType) { |
| 15565 | const type2 = parseMIMEType(mimeType); |
| 15566 | if (type2 !== "failure") { |
nothing calls this directly
no outgoing calls
no test coverage detected