File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,10 @@ export function eventFromString(
143
143
} ;
144
144
145
145
if ( options . attachStacktrace && syntheticException ) {
146
- event . stacktrace = {
147
- frames : parseStackFrames ( syntheticException ) ,
148
- } ;
146
+ const frames = parseStackFrames ( syntheticException ) ;
147
+ if ( frames . length ) {
148
+ event . stacktrace = { frames } ;
149
+ }
149
150
}
150
151
151
152
return event ;
Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ export function eventFromPlainObject(
54
54
} ;
55
55
56
56
if ( syntheticException ) {
57
- event . stacktrace = {
58
- frames : parseStackFrames ( syntheticException ) ,
59
- } ;
57
+ const frames = parseStackFrames ( syntheticException ) ;
58
+ if ( frames . length ) {
59
+ event . stacktrace = { frames } ;
60
+ }
60
61
}
61
62
62
63
return event ;
You can’t perform that action at this time.
0 commit comments