MCPcopy Index your code
hub / github.com/TruthHun/BookStack / longStackTracesAttachExtraTrace

Function longStackTracesAttachExtraTrace

static/word2md/mammoth.browser.js:5056–5071  ·  view source on GitHub ↗
(error, ignoreSelf)

Source from the content-addressed store, hash-verified

5054}
5055
5056function longStackTracesAttachExtraTrace(error, ignoreSelf) {
5057 if (canAttachTrace(error)) {
5058 var trace = this._trace;
5059 if (trace !== undefined) {
5060 if (ignoreSelf) trace = trace._parent;
5061 }
5062 if (trace !== undefined) {
5063 trace.attachExtraTrace(error);
5064 } else if (!error.__stackCleaned__) {
5065 var parsed = parseStackAndMessage(error);
5066 util.notEnumerableProp(error, "stack",
5067 parsed.message + "\n" + parsed.stack.join("\n"));
5068 util.notEnumerableProp(error, "__stackCleaned__", true);
5069 }
5070 }
5071}
5072
5073function checkForgottenReturns(returnValue, promiseCreated, name, promise,
5074 parent) {

Callers

nothing calls this directly

Calls 2

canAttachTraceFunction · 0.70
parseStackAndMessageFunction · 0.70

Tested by

no test coverage detected