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(
143143 } ;
144144
145145 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+ }
149150 }
150151
151152 return event ;
Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ export function eventFromPlainObject(
5454 } ;
5555
5656 if ( syntheticException ) {
57- event . stacktrace = {
58- frames : parseStackFrames ( syntheticException ) ,
59- } ;
57+ const frames = parseStackFrames ( syntheticException ) ;
58+ if ( frames . length ) {
59+ event . stacktrace = { frames } ;
60+ }
6061 }
6162
6263 return event ;
You can’t perform that action at this time.
0 commit comments