MCPcopy
hub / github.com/angular/angular / runNgZoneNoLog

Function runNgZoneNoLog

packages/core/test/zone/ng_zone_spec.ts:59–67  ·  view source on GitHub ↗
(fn: () => any)

Source from the content-addressed store, hash-verified

57}
58
59function runNgZoneNoLog(fn: () => any) {
60 const length = _log.logItems.length;
61 try {
62 return _zone.run(fn);
63 } finally {
64 // delete anything which may have gotten logged.
65 _log.logItems.length = length;
66 }
67}
68
69describe('NgZone', () => {
70 function createZone(enableLongStackTrace: boolean) {

Callers 1

commonTestsFunction · 0.85

Calls 1

runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…