Skip to content

Commit

Permalink
use platform over lang
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Oct 24, 2024
1 parent 9de1d0f commit 11304e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/extensions/exception-autocapture/stack-trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ export type StackLineParserFn = (line: string) => StackFrame | undefined
export type StackLineParser = [number, StackLineParserFn]

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

function createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {
const frame: StackFrame = {
lang: 'javascript',
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 11304e0

Please sign in to comment.