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

Function successAdapter

static/word2md/mammoth.browser.js:6675–6684  ·  view source on GitHub ↗
(val, nodeback)

Source from the content-addressed store, hash-verified

6673}
6674
6675function successAdapter(val, nodeback) {
6676 var promise = this;
6677 var receiver = promise._boundValue();
6678 var ret = val === undefined
6679 ? tryCatch(nodeback).call(receiver, null)
6680 : tryCatch(nodeback).call(receiver, null, val);
6681 if (ret === errorObj) {
6682 async.throwLater(ret.e);
6683 }
6684}
6685function errorAdapter(reason, nodeback) {
6686 var promise = this;
6687 if (!reason) {

Callers

nothing calls this directly

Calls 1

tryCatchFunction · 0.70

Tested by

no test coverage detected