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

Function addErrorStack

packages/zone.js/lib/zone-spec/long-stack-trace.ts:54–63  ·  view source on GitHub ↗
(lines: string[], error: Error)

Source from the content-addressed store, hash-verified

52 }
53
54 function addErrorStack(lines: string[], error: Error): void {
55 let trace: string[] = getFrames(error);
56 for (let i = 0; i < trace.length; i++) {
57 const frame = trace[i];
58 // Filter out the Frames which are part of stack capturing.
59 if (!IGNORE_FRAMES.hasOwnProperty(frame)) {
60 lines.push(trace[i]);
61 }
62 }
63 }
64
65 function renderLongStackTrace(frames: LongStackTrace[], stack?: string): string {
66 const longTrace: string[] = [stack ? stack.trim() : ''];

Callers 1

renderLongStackTraceFunction · 0.85

Calls 2

getFramesFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…