(lView: LView, error: any)
| 724 | |
| 725 | /** Handles an error thrown in an LView. */ |
| 726 | export function handleUncaughtError(lView: LView, error: any): void { |
| 727 | const injector = lView[INJECTOR]; |
| 728 | if (!injector) { |
| 729 | return; |
| 730 | } |
| 731 | let errorHandler: ((e: any) => void) | null; |
| 732 | try { |
| 733 | errorHandler = injector.get(INTERNAL_APPLICATION_ERROR_HANDLER, null); |
| 734 | } catch { |
| 735 | errorHandler = null; |
| 736 | } |
| 737 | errorHandler?.(error); |
| 738 | } |
| 739 | |
| 740 | /** |
| 741 | * Set all directive inputs with the specific public name on the node. |
no test coverage detected