MCPcopy
hub / github.com/di-sukharev/opencommit / abort

Method abort

out/cli.cjs:61451–61465  ·  view source on GitHub ↗

* @see https://w3c.github.io/FileAPI/#dfn-abort

()

Source from the content-addressed store, hash-verified

61449 webidl.brandCheck(this, _FileReader);
61450 webidl.argumentLengthCheck(arguments, 1, { header: "FileReader.readAsDataURL" });
61451 blob = webidl.converters.Blob(blob, { strict: false });
61452 readOperation(this, blob, "DataURL");
61453 }
61454 /**
61455 * @see https://w3c.github.io/FileAPI/#dfn-abort
61456 */
61457 abort() {
61458 if (this[kState] === "empty" || this[kState] === "done") {
61459 this[kResult] = null;
61460 return;
61461 }
61462 if (this[kState] === "loading") {
61463 this[kState] = "done";
61464 this[kResult] = null;
61465 }
61466 this[kAborted] = true;
61467 fireAProgressEvent("abort", this);
61468 if (this[kState] !== "loading") {

Callers

nothing calls this directly

Calls 1

fireAProgressEventFunction · 0.85

Tested by

no test coverage detected