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