MCPcopy Create free account
hub / github.com/TruthHun/BookStack / iterator

Function iterator

static/word2md/mammoth.browser.js:8993–9011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8991 var len = resources.length;
8992 var ret = new Promise(INTERNAL);
8993 function iterator() {
8994 if (i >= len) return ret._fulfill();
8995 var maybePromise = castPreservingDisposable(resources[i++]);
8996 if (maybePromise instanceof Promise &&
8997 maybePromise._isDisposable()) {
8998 try {
8999 maybePromise = tryConvertToPromise(
9000 maybePromise._getDisposer().tryDispose(inspection),
9001 resources.promise);
9002 } catch (e) {
9003 return thrower(e);
9004 }
9005 if (maybePromise instanceof Promise) {
9006 return maybePromise._then(iterator, thrower,
9007 null, null, null);
9008 }
9009 }
9010 iterator();
9011 }
9012 iterator();
9013 return ret;
9014 }

Callers 11

disposeFunction · 0.70
createReduceFunction · 0.70
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50
eachEventFunction · 0.50

Calls 3

castPreservingDisposableFunction · 0.70
tryConvertToPromiseFunction · 0.70
throwerFunction · 0.70

Tested by

no test coverage detected