A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stacktracejs/error-stack-parser/commit/d74fe212a3f58eb252d59c3cb680b051fd00ad2e below:

removed splitting 'sanitizedLine' and reorganized using 'sanitiz… · stacktracejs/error-stack-parser@d74fe21 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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