* @see https://w3c.github.io/FileAPI/#dfn-abort
()
| 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") { |
nothing calls this directly
no test coverage detected