MCPcopy
hub / github.com/fanmingming/live / handleError

Function handleError

m3u8/vue.js:1826–1851  ·  view source on GitHub ↗
(err, vm, info)

Source from the content-addressed store, hash-verified

1824 /* */
1825
1826 function handleError (err, vm, info) {
1827 // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
1828 // See: https://github.com/vuejs/vuex/issues/1505
1829 pushTarget();
1830 try {
1831 if (vm) {
1832 var cur = vm;
1833 while ((cur = cur.$parent)) {
1834 var hooks = cur.$options.errorCaptured;
1835 if (hooks) {
1836 for (var i = 0; i < hooks.length; i++) {
1837 try {
1838 var capture = hooks[i].call(cur, err, vm, info) === false;
1839 if (capture) { return }
1840 } catch (e) {
1841 globalHandleError(e, cur, 'errorCaptured hook');
1842 }
1843 }
1844 }
1845 }
1846 }
1847 globalHandleError(err, vm, info);
1848 } finally {
1849 popTarget();
1850 }
1851 }
1852
1853 function invokeWithErrorHandling (
1854 handler,

Callers 7

invokeWithErrorHandlingFunction · 0.85
nextTickFunction · 0.85
renderMixinFunction · 0.85
vue.jsFile · 0.85
getDataFunction · 0.85
stateMixinFunction · 0.85
callHook$1Function · 0.85

Calls 3

pushTargetFunction · 0.85
globalHandleErrorFunction · 0.85
popTargetFunction · 0.85

Tested by

no test coverage detected