MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / handleAsyncError

Method handleAsyncError

src/audio_decoder.ts:394–405  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

392 }
393
394 private handleAsyncError(e: unknown) {
395 const error = e instanceof DOMException
396 ? e
397 : e instanceof Error
398 ? new DOMException(e.message, 'EncodingError')
399 : new DOMException('Decoding error', 'EncodingError');
400
401 this.close();
402
403 // Invoke error callback
404 this.init.error(error);
405 }
406}

Callers 3

configureMethod · 0.95
decodeMethod · 0.95
flushMethod · 0.95

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected