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

Function v8stackFormatter

static/word2md/mammoth.browser.js:5448–5456  ·  view source on GitHub ↗
(stack, error)

Source from the content-addressed store, hash-verified

5446var captureStackTrace = (function stackDetection() {
5447 var v8stackFramePattern = /^\s*at\s*/;
5448 var v8stackFormatter = function(stack, error) {
5449 if (typeof stack === "string") return stack;
5450
5451 if (error.name !== undefined &&
5452 error.message !== undefined) {
5453 return error.toString();
5454 }
5455 return formatNonError(error);
5456 };
5457
5458 if (typeof Error.stackTraceLimit === "number" &&
5459 typeof Error.captureStackTrace === "function") {

Callers

nothing calls this directly

Calls 1

formatNonErrorFunction · 0.70

Tested by

no test coverage detected