Skip to content

Commit 77bad3c

Browse files
lforstramchaik
authored andcommitted
feat: Put abs_path into stack frame object (getsentry#7167)
1 parent ee54fa9 commit 77bad3c

File tree

9 files changed

+1504
-210
lines changed

9 files changed

+1504
-210
lines changed

packages/browser/src/stack-parsers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const GECKO_PRIORITY = 50;
1313
function createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {
1414
const frame: StackFrame = {
1515
filename,
16+
abs_path: filename, // As opposed to filename, abs_path is immutable (I can't control your actions but don't touch it!)
1617
function: func,
17-
// All browser frames are considered in_app
18-
in_app: true,
18+
in_app: true, // All browser frames are considered in_app
1919
};
2020

2121
if (lineno !== undefined) {

0 commit comments

Comments
 (0)