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

Function gotValue

static/word2md/mammoth.browser.js:8390–8413  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8388}
8389
8390function gotValue(value) {
8391 var array = this.array;
8392 var promise = array._promise;
8393 var fn = tryCatch(array._fn);
8394 promise._pushContext();
8395 var ret;
8396 if (array._eachValues !== undefined) {
8397 ret = fn.call(promise._boundValue(), value, this.index, this.length);
8398 } else {
8399 ret = fn.call(promise._boundValue(),
8400 this.accum, value, this.index, this.length);
8401 }
8402 if (ret instanceof Promise) {
8403 array._currentCancellable = ret;
8404 }
8405 var promiseCreated = promise._popContext();
8406 debug.checkForgottenReturns(
8407 ret,
8408 promiseCreated,
8409 array._eachValues !== undefined ? "Promise.each" : "Promise.reduce",
8410 promise
8411 );
8412 return ret;
8413}
8414};
8415
8416},{"./util":74}],67:[function(require,module,exports){

Callers

nothing calls this directly

Calls 1

tryCatchFunction · 0.70

Tested by

no test coverage detected