File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 67
67
// remove the parenthesized location from the line, if it was matched
68
68
sanitizedLine = location ? sanitizedLine . replace ( location [ 0 ] , '' ) : sanitizedLine ;
69
69
70
- var tokens = sanitizedLine . split ( / \s + / ) ;
71
- // if a location was matched, pass it to extractLocation() otherwise pop the last token
72
- var locationParts = this . extractLocation ( location ? location [ 1 ] : tokens . pop ( ) ) ;
73
- var functionName = tokens . join ( ' ' ) || undefined ;
70
+ // if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine
71
+ // because this line doesn't have function name
72
+ var locationParts = this . extractLocation ( location ? location [ 1 ] : sanitizedLine ) ;
73
+ var functionName = location && sanitizedLine || undefined ;
74
74
var fileName = [ 'eval' , '<anonymous>' ] . indexOf ( locationParts [ 0 ] ) > - 1 ? undefined : locationParts [ 0 ] ;
75
75
76
76
return new StackFrame ( {
You can’t perform that action at this time.
0 commit comments