File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ export function stackParserFromStackParserOptions(stackParser: StackParser | Sta
55
55
}
56
56
57
57
/**
58
+ * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.
59
+ * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the
60
+ * function that caused the crash is the last frame in the array.
58
61
* @hidden
59
62
*/
60
63
export function stripSentryFramesAndReverse ( stack : ReadonlyArray < StackFrame > ) : StackFrame [ ] {
@@ -79,7 +82,6 @@ export function stripSentryFramesAndReverse(stack: ReadonlyArray<StackFrame>): S
79
82
localStack . pop ( ) ;
80
83
}
81
84
82
- // The frame where the crash happened, should be the last entry in the array
83
85
return localStack . map ( frame => ( {
84
86
...frame ,
85
87
filename : frame . filename || localStack [ 0 ] . filename ,
You can’t perform that action at this time.
0 commit comments