MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

github-actions/browserstack/set-browserstack-env.js:15770–15805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15768 }
15769 }
15770 get onerror() {
15771 webidl.brandCheck(this, _FileReader);
15772 return this[kEvents].error;
15773 }
15774 set onerror(fn) {
15775 webidl.brandCheck(this, _FileReader);
15776 if (this[kEvents].error) {
15777 this.removeEventListener("error", this[kEvents].error);
15778 }
15779 if (typeof fn === "function") {
15780 this[kEvents].error = fn;
15781 this.addEventListener("error", fn);
15782 } else {
15783 this[kEvents].error = null;
15784 }
15785 }
15786 get onloadstart() {
15787 webidl.brandCheck(this, _FileReader);
15788 return this[kEvents].loadstart;
15789 }
15790 set onloadstart(fn) {
15791 webidl.brandCheck(this, _FileReader);
15792 if (this[kEvents].loadstart) {
15793 this.removeEventListener("loadstart", this[kEvents].loadstart);
15794 }
15795 if (typeof fn === "function") {
15796 this[kEvents].loadstart = fn;
15797 this.addEventListener("loadstart", fn);
15798 } else {
15799 this[kEvents].loadstart = null;
15800 }
15801 }
15802 get onprogress() {
15803 webidl.brandCheck(this, _FileReader);
15804 return this[kEvents].progress;
15805 }
15806 set onprogress(fn) {
15807 webidl.brandCheck(this, _FileReader);
15808 if (this[kEvents].progress) {

Callers

nothing calls this directly

Calls 2

__privateAddFunction · 0.70
__privateSetFunction · 0.70

Tested by

no test coverage detected