MCPcopy
hub / github.com/angular/angular / runGuarded

Method runGuarded

packages/zone.js/lib/zone-impl.ts:905–923  ·  view source on GitHub ↗
(
      callback: (...args: any[]) => T,
      applyThis: any = null,
      applyArgs?: any[],
      source?: string,
    )

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

invokeMethod · 0.65
handleErrorMethod · 0.65

Tested by

no test coverage detected