Skip to content

Commit

Permalink
test(utils): test fallback to last
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Mar 10, 2023
1 parent d59a812 commit 678dcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/stacktrace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function stripSentryFramesAndReverse(stack: ReadonlyArray<StackFrame>): S

return localStack.map(frame => ({
...frame,
filename: frame.filename || localStack[0].filename,
filename: frame.filename || localStack[localStack.length - 1].filename,
function: frame.function || '?',
}));
}
Expand Down

0 comments on commit 678dcce

Please sign in to comment.