We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a401a commit 4bc58c1Copy full SHA for 4bc58c1
packages/browser/src/parsers.ts
@@ -99,6 +99,7 @@ export function prepareFramesForEvent(stack: TraceKitStackFrame[]): StackFrame[]
99
100
// The frame where the crash happened, should be the last entry in the array
101
return localStack
102
+ .slice(0, STACKTRACE_LIMIT)
103
.map(
104
(frame: TraceKitStackFrame): StackFrame => ({
105
colno: frame.column === null ? undefined : frame.column,
@@ -108,6 +109,5 @@ export function prepareFramesForEvent(stack: TraceKitStackFrame[]): StackFrame[]
108
109
lineno: frame.line === null ? undefined : frame.line,
110
}),
111
)
- .slice(0, STACKTRACE_LIMIT)
112
.reverse();
113
}
0 commit comments