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 6767 // remove the parenthesized location from the line, if it was matched
6868 sanitizedLine = location ? sanitizedLine . replace ( location [ 0 ] , '' ) : sanitizedLine ;
6969
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 ;
7474 var fileName = [ 'eval' , '<anonymous>' ] . indexOf ( locationParts [ 0 ] ) > - 1 ? undefined : locationParts [ 0 ] ;
7575
7676 return new StackFrame ( {
You can’t perform that action at this time.
0 commit comments