(fn: Function, component: Component<any, any>)
| 28 | const readyComponents: any[] = [] |
| 29 | |
| 30 | export function errorCatcher (fn: Function, component: Component<any, any>) { |
| 31 | try { |
| 32 | return fn() |
| 33 | } catch (error) { |
| 34 | errorHandler(component, error) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | function errorHandler (component: Component<any, any>, error) { |
| 39 | // if(!component) { throw error ; return } |
no test coverage detected