MCPcopy
hub / github.com/NaiboWang/EasySpider / warn

Function warn

ElectronJS/src/js/vue.global.js:1636–1664  ·  view source on GitHub ↗
(msg, ...args)

Source from the content-addressed store, hash-verified

1634 stack.pop();
1635 }
1636 function warn(msg, ...args) {
1637 // avoid props formatting or warn handler tracking deps that might be mutated
1638 // during patch, leading to infinite recursion.
1639 pauseTracking();
1640 const instance = stack.length ? stack[stack.length - 1].component : null;
1641 const appWarnHandler = instance && instance.appContext.config.warnHandler;
1642 const trace = getComponentTrace();
1643 if (appWarnHandler) {
1644 callWithErrorHandling(appWarnHandler, instance, 11 /* ErrorCodes.APP_WARN_HANDLER */, [
1645 msg + args.join(''),
1646 instance && instance.proxy,
1647 trace
1648 .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)
1649 .join('\n'),
1650 trace
1651 ]);
1652 }
1653 else {
1654 const warnArgs = [`[Vue warn]: ${msg}`, ...args];
1655 /* istanbul ignore if */
1656 if (trace.length &&
1657 // avoid spamming console during tests
1658 !false) {
1659 warnArgs.push(`\n`, ...formatTrace(trace));
1660 }
1661 console.warn(...warnArgs);
1662 }
1663 resetTracking();
1664 }
1665 function getComponentTrace() {
1666 let currentVNode = stack[stack.length - 1];
1667 if (!currentVNode) {

Callers 15

assertNumberFunction · 0.70
logErrorFunction · 0.70
checkRecursiveUpdatesFunction · 0.70
emitFunction · 0.70
renderComponentRootFunction · 0.70
normalizeSuspenseSlotFunction · 0.70
provideFunction · 0.70
injectFunction · 0.70
watchFunction · 0.70
doWatchFunction · 0.70
warnInvalidSourceFunction · 0.70
setupFunction · 0.70

Calls 6

pauseTrackingFunction · 0.85
getComponentTraceFunction · 0.85
callWithErrorHandlingFunction · 0.85
formatComponentNameFunction · 0.85
formatTraceFunction · 0.85
resetTrackingFunction · 0.85

Tested by

no test coverage detected