+4
-4
lines changedFilter options
+4
-4
lines changed Original file line number Diff line number Diff line change
@@ -67,10 +67,10 @@
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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4