File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -513,13 +513,15 @@ Raven.prototype = {
513513 // fingerprint on msg, not stack trace (legacy behavior, could be
514514 // revisited)
515515 fingerprint : msg ,
516- // since we know this is a synthetic trace, the top N-most frames
517- // MUST be from Raven.js, so mark them as in_app later by setting
518- // trimHeadFrames
519- trimHeadFrames : ( options . trimHeadFrames || 0 ) + 1
516+ trimHeadFrames : 0
520517 } ,
521518 options
522519 ) ;
520+ // Since we know this is a synthetic trace, the top frame (this function call)
521+ // MUST be from Raven.js, so mark it for trimming
522+ // We add to the trim counter so that callers can choose to trim extra frames, such
523+ // as utility functions.
524+ options . trimHeadFrames += 1 ;
523525
524526 var frames = this . _prepareFrames ( stack , options ) ;
525527 data . stacktrace = {
You can’t perform that action at this time.
0 commit comments