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

Function warn

static/word2md/mammoth.browser.js:5127–5143  ·  view source on GitHub ↗
(message, shouldUseOwnTrace, promise)

Source from the content-addressed store, hash-verified

5125}
5126
5127function warn(message, shouldUseOwnTrace, promise) {
5128 if (!config.warnings) return;
5129 var warning = new Warning(message);
5130 var ctx;
5131 if (shouldUseOwnTrace) {
5132 promise._attachExtraTrace(warning);
5133 } else if (config.longStackTraces && (ctx = Promise._peekContext())) {
5134 ctx.attachExtraTrace(warning);
5135 } else {
5136 var parsed = parseStackAndMessage(warning);
5137 warning.stack = parsed.message + "\n" + parsed.stack.join("\n");
5138 }
5139
5140 if (!activeFireEvent("warning", warning)) {
5141 formatAndLogError(warning, "", true);
5142 }
5143}
5144
5145function reconstructStack(message, stacks) {
5146 for (var i = 0; i < stacks.length - 1; ++i) {

Callers 15

mammoth.browser.jsFile · 0.70
deprecatedFunction · 0.70
setFunction · 0.50
delFunction · 0.50
vue.runtime.esm.jsFile · 0.50
checkComponentsFunction · 0.50
normalizePropsFunction · 0.50
resolveAssetFunction · 0.50
getPropDefaultValueFunction · 0.50
assertPropFunction · 0.50
handleErrorFunction · 0.50
warnNonPresentFunction · 0.50

Calls 3

parseStackAndMessageFunction · 0.70
activeFireEventFunction · 0.70
formatAndLogErrorFunction · 0.70

Tested by

no test coverage detected