(value)
| 8388 | } |
| 8389 | |
| 8390 | function 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){ |
nothing calls this directly
no test coverage detected