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

Function tryCatcher

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

Source from the content-addressed store, hash-verified

9203 this !== undefined ? this : null;
9204
9205function tryCatcher() {
9206 try {
9207 var target = tryCatchTarget;
9208 tryCatchTarget = null;
9209 return target.apply(this, arguments);
9210 } catch (e) {
9211 errorObj.e = e;
9212 return errorObj;
9213 }
9214}
9215function tryCatch(fn) {
9216 tryCatchTarget = fn;
9217 return tryCatcher;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected