MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / storeSuccess

Function storeSuccess

src/Fetch.js:809–818  ·  view source on GitHub ↗
(fetch, xhr, e)

Source from the content-addressed store, hash-verified

807 dbg(`fetch: operation success. Caching result.. e: ${e}`);
808#endif
809 var storeSuccess = (fetch, xhr, e) => {
810#if FETCH_DEBUG
811 dbg('fetch: IndexedDB store succeeded.');
812#endif
813 {{{ runtimeKeepalivePop() }}}
814 doCallback(() => {
815 if (onsuccess) {{{ makeDynCall('vp', 'onsuccess') }}}(fetch);
816 else successcb?.(fetch);
817 });
818 };
819 var storeError = (fetch, xhr, e) => {
820#if FETCH_DEBUG
821 dbg('fetch: IndexedDB store failed.');

Callers

nothing calls this directly

Calls 4

runtimeKeepalivePopFunction · 0.85
makeDynCallFunction · 0.85
doCallbackFunction · 0.70
dbgFunction · 0.50

Tested by

no test coverage detected