MCPcopy Create free account
hub / github.com/UI5/webcomponents / onerror

Function onerror

packages/main/test/pages/diffable-html.js:6713–6718  ·  view source on GitHub ↗
(er)

Source from the content-addressed store, hash-verified

6711 // if the dest has an error, then stop piping into it.
6712 // however, don't suppress the throwing behavior for this.
6713 function onerror(er) {
6714 debug('onerror', er);
6715 unpipe();
6716 dest.removeListener('error', onerror);
6717 if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
6718 }
6719
6720 // Make sure our error handler is attached before userland ones.
6721 prependListener(dest, 'error', onerror);

Callers

nothing calls this directly

Calls 3

unpipeFunction · 0.85
EElistenerCountFunction · 0.85
cleanupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…