(fn, instance, type, args)
| 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); |
no test coverage detected