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

Function callWithErrorHandling

ElectronJS/src/js/vue.global.js:1789–1798  ·  view source on GitHub ↗
(fn, instance, type, args)

Source from the content-addressed store, hash-verified

1787 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
1788 };
1789 function callWithErrorHandling(fn, instance, type, args) {
1790 let res;
1791 try {
1792 res = args ? fn(...args) : fn();
1793 }
1794 catch (err) {
1795 handleError(err, instance, type);
1796 }
1797 return res;
1798 }
1799 function callWithAsyncErrorHandling(fn, instance, type, args) {
1800 if (isFunction(fn)) {
1801 const res = callWithErrorHandling(fn, instance, type, args);

Callers 8

warnFunction · 0.85
handleErrorFunction · 0.85
flushJobsFunction · 0.85
doWatchFunction · 0.85
onCleanupFunction · 0.85
setRefFunction · 0.85
setupStatefulComponentFunction · 0.85

Calls 2

fnFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected