MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / readAsText

Method readAsText

out/cli.cjs:61429–61437  ·  view source on GitHub ↗

* @see https://w3c.github.io/FileAPI/#readAsDataText * @param {import('buffer').Blob} blob * @param {string?} encoding

(blob, encoding = void 0)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

readOperationFunction · 0.85

Tested by

no test coverage detected