(
callback: (...args: any[]) => T,
applyThis: any = null,
applyArgs?: any[],
source?: string,
)
| 898 | |
| 899 | public runGuarded(callback: Function, applyThis?: any, applyArgs?: any[], source?: string): any; |
| 900 | public runGuarded<T>( |
| 901 | callback: (...args: any[]) => T, |
| 902 | applyThis: any = null, |
| 903 | applyArgs?: any[], |
| 904 | source?: string, |
| 905 | ) { |
| 906 | _currentZoneFrame = {parent: _currentZoneFrame, zone: this}; |
| 907 | try { |
| 908 | try { |
| 909 | return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source); |
| 910 | } catch (error) { |
| 911 | if (this._zoneDelegate.handleError(this, error)) { |
| 912 | throw error; |
| 913 | } |
| 914 | } |
| 915 | } finally { |
| 916 | _currentZoneFrame = _currentZoneFrame.parent!; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | runTask(task: Task, applyThis?: any, applyArgs?: any): any { |
| 921 | if (task.zone != this) { |
nothing calls this directly
no test coverage detected