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 = {
513
513
// fingerprint on msg, not stack trace (legacy behavior, could be
514
514
// revisited)
515
515
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
520
517
} ,
521
518
options
522
519
) ;
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 ;
523
525
524
526
var frames = this . _prepareFrames ( stack , options ) ;
525
527
data . stacktrace = {
You can’t perform that action at this time.
0 commit comments