Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Remove usage of deprecated event.stacktrace#4885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
97e6ff357d37c2424df275a7f145f855260f1e9da255b05702fc13c620c7773244eb0e285ca268afb70c1bfb3aa4c74bfa270ce536865b6e5600f87a91cecdFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -74,7 +74,8 @@ export function eventFromPlainObject( | ||
| if (syntheticException) { | ||
| const frames = parseStackFrames(syntheticException); | ||
| if (frames.length) { | ||
| event.stacktrace = { frames }; | ||
| // event.exception.values[0] has been set above | ||
| (event.exception as { values: Exception[] }).values[0].stacktrace = { frames }; | ||
| } | ||
| } | ||
| @@ -273,7 +274,9 @@ export function eventFromString(input: string, syntheticException?: Error, attac | ||
| if (attachStacktrace && syntheticException) { | ||
| const frames = parseStackFrames(syntheticException); | ||
| if (frames.length) { | ||
| event.stacktrace = { frames }; | ||
| event.exception = { | ||
| values: [{ value: input, stacktrace: { frames } }], | ||
timfish marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| }; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -198,8 +198,6 @@ function _getFramesFromEvent(event: Event): StackFrame[] | undefined { | ||
| } catch (_oO) { | ||
| return undefined; | ||
| } | ||
| } else if (event.stacktrace) { | ||
| return event.stacktrace.frames; | ||
timfish marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| return undefined; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.