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

Function reconstructStack

static/word2md/mammoth.browser.js:5145–5154  ·  view source on GitHub ↗
(message, stacks)

Source from the content-addressed store, hash-verified

5143}
5144
5145function reconstructStack(message, stacks) {
5146 for (var i = 0; i < stacks.length - 1; ++i) {
5147 stacks[i].push("From previous event:");
5148 stacks[i] = stacks[i].join("\n");
5149 }
5150 if (i < stacks.length) {
5151 stacks[i] = stacks[i].join("\n");
5152 }
5153 return message + "\n" + stacks.join("\n");
5154}
5155
5156function removeDuplicateOrEmptyJumps(stacks) {
5157 for (var i = 0; i < stacks.length; ++i) {

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected