Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(source: Blob | File) {
this._source = source;
this._reader = new globalThis.FileReader();
this._reader.addEventListener('load', this._onLoad.bind(this));
this._reader.addEventListener('error', this._onError.bind(this));
this._reader.addEventListener('abort', this._onError.bind(this));
}