Skip to content

Commit

Permalink
chore: set platform on stack frame (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Oct 24, 2024
1 parent 7816ad5 commit 0de431c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extensions/exception-autocapture/stack-trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export type StackLineParserFn = (line: string) => StackFrame | undefined
export type StackLineParser = [number, StackLineParserFn]

export interface StackFrame {
platform: string
filename?: string
function?: string
module?: string
platform?: string
lineno?: number
colno?: number
abs_path?: string
Expand All @@ -63,6 +63,7 @@ const GECKO_PRIORITY = 50

function createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {
const frame: StackFrame = {
platform: 'javascript',
filename,
function: func === '<anonymous>' ? UNKNOWN_FUNCTION : func,
in_app: true, // All browser frames are considered in_app
Expand Down

0 comments on commit 0de431c

Please sign in to comment.