+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
58
58
// Throw away eval information until we implement stacktrace.js/stackframe#8
59
59
line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
60
60
}
61
-
var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(');
61
+
var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(').replace(/^.*?\s+/, '');
62
62
63
63
// capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in
64
64
// case it has spaces in it, as the string is split on \s+ later on
@@ -67,7 +67,7 @@
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+/).slice(1);
70
+
var tokens = sanitizedLine.split(/\s+/);
71
71
// if a location was matched, pass it to extractLocation() otherwise pop the last token
72
72
var locationParts = this.extractLocation(location ? location[1] : tokens.pop());
73
73
var functionName = tokens.join(' ') || undefined;
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