MCPcopy Index your code
hub / github.com/angular/angular / computeIgnoreFrames

Function computeIgnoreFrames

packages/zone.js/lib/zone-spec/long-stack-trace.ts:173–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 }
172
173 function computeIgnoreFrames() {
174 if (!stackTracesEnabled()) {
175 return;
176 }
177 const frames: string[][] = [];
178 captureStackTraces(frames, 2);
179 const frames1 = frames[0];
180 const frames2 = frames[1];
181 for (let i = 0; i < frames1.length; i++) {
182 const frame1 = frames1[i];
183 if (frame1.indexOf(ERROR_TAG) == -1) {
184 let match = frame1.match(/^\s*at\s+/);
185 if (match) {
186 sepTemplate = match[0] + SEP_TAG + ' (http://localhost)';
187 break;
188 }
189 }
190 }
191
192 for (let i = 0; i < frames1.length; i++) {
193 const frame1 = frames1[i];
194 const frame2 = frames2[i];
195 if (frame1 === frame2) {
196 IGNORE_FRAMES[frame1] = true;
197 } else {
198 break;
199 }
200 }
201 }
202 computeIgnoreFrames();
203}

Callers 1

patchLongStackTraceFunction · 0.85

Calls 4

stackTracesEnabledFunction · 0.85
captureStackTracesFunction · 0.85
indexOfMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…