File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,12 @@ export function stackParserFromStackParserOptions(stackParser: StackParser | Sta
57
57
/**
58
58
* @hidden
59
59
*/
60
- export function stripSentryFramesAndReverse ( stack : StackFrame [ ] ) : StackFrame [ ] {
60
+ export function stripSentryFramesAndReverse ( stack : ReadonlyArray < StackFrame > ) : StackFrame [ ] {
61
61
if ( ! stack . length ) {
62
62
return [ ] ;
63
63
}
64
64
65
- let localStack = stack ;
66
-
67
- if ( stack . length >= STACKTRACE_LIMIT ) {
68
- localStack . slice ( 0 , STACKTRACE_LIMIT ) ;
69
- }
65
+ let localStack = stack . slice ( 0 , STACKTRACE_LIMIT ) ;
70
66
71
67
const lastFrameFunction = localStack [ localStack . length - 1 ] . function ;
72
68
// If stack ends with one of our internal API calls, remove it (ends, meaning it's the bottom of the stack - aka top-most call)
You can’t perform that action at this time.
0 commit comments