| 547 | * to framework to perform rendering. |
| 548 | */ |
| 549 | export class NoopNgZone implements NgZone { |
| 550 | readonly hasPendingMicrotasks = false; |
| 551 | readonly hasPendingMacrotasks = false; |
| 552 | readonly isStable = true; |
| 553 | readonly onUnstable = new EventEmitter<any>(); |
| 554 | readonly onMicrotaskEmpty = new EventEmitter<any>(); |
| 555 | readonly onStable = new EventEmitter<any>(); |
| 556 | readonly onError = new EventEmitter<any>(); |
| 557 | |
| 558 | run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any): T { |
| 559 | return fn.apply(applyThis, applyArgs); |
| 560 | } |
| 561 | |
| 562 | runGuarded<T>(fn: (...args: any[]) => any, applyThis?: any, applyArgs?: any): T { |
| 563 | return fn.apply(applyThis, applyArgs); |
| 564 | } |
| 565 | |
| 566 | runOutsideAngular<T>(fn: (...args: any[]) => T): T { |
| 567 | return fn(); |
| 568 | } |
| 569 | |
| 570 | runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any, name?: string): T { |
| 571 | return fn.apply(applyThis, applyArgs); |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | function shouldBeIgnoredByZone(applyArgs: unknown): boolean { |
| 576 | return hasApplyArgsData(applyArgs, '__ignore_ng_zone__'); |
nothing calls this directly
no outgoing calls
no test coverage detected