* @see https://w3c.github.io/FileAPI/#readAsDataText * @param {import('buffer').Blob} blob * @param {string?} encoding
(blob, encoding = void 0)
| 61427 | blob = webidl.converters.Blob(blob, { strict: false }); |
| 61428 | readOperation(this, blob, "BinaryString"); |
| 61429 | } |
| 61430 | /** |
| 61431 | * @see https://w3c.github.io/FileAPI/#readAsDataText |
| 61432 | * @param {import('buffer').Blob} blob |
| 61433 | * @param {string?} encoding |
| 61434 | */ |
| 61435 | readAsText(blob, encoding = void 0) { |
| 61436 | webidl.brandCheck(this, _FileReader); |
| 61437 | webidl.argumentLengthCheck(arguments, 1, { header: "FileReader.readAsText" }); |
| 61438 | blob = webidl.converters.Blob(blob, { strict: false }); |
| 61439 | if (encoding !== void 0) { |
| 61440 | encoding = webidl.converters.DOMString(encoding); |
nothing calls this directly
no test coverage detected