We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfb3aa commit 4c74bfaCopy full SHA for 4c74bfa
packages/browser/src/eventbuilder.ts
@@ -71,10 +71,11 @@ export function eventFromPlainObject(
71
},
72
};
73
74
- if (syntheticException && event.exception?.values?.[0]) {
+ if (syntheticException) {
75
const frames = parseStackFrames(syntheticException);
76
if (frames.length) {
77
- event.exception.values[0].stacktrace = { frames };
+ // event.exception.values[0] has been set above
78
+ (event.exception as { values: Exception[] }).values[0].stacktrace = { frames };
79
}
80
81
0 commit comments