Skip to content

Commit d07eb74

Browse files
committed
Avoid premature/lossy normalization of function names in IE/Chrome. Fixes #17 and #19
1 parent d647320 commit d07eb74

10 files changed

+30
-10
lines changed

.jshintrc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"es3": true,
1515
"camelcase": true,
1616
"nonbsp": true,
17+
"maxlen": 130,
1718
"predef": {
1819
"afterEach": false,
1920
"beforeEach": false,

dist/error-stack-parser-with-polyfills.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/error-stack-parser-with-polyfills.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/error-stack-parser.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
}, this).map(function (line) {
6363
var tokens = line.replace(/^\s+/, '').split(/\s+/).slice(1);
6464
var locationParts = this.extractLocation(tokens.pop());
65-
var functionName = (!tokens[0] || tokens[0] === 'Anonymous') ? undefined : tokens[0];
65+
var functionName = tokens.join(' ') || undefined;
66+
6667
return new StackFrame(functionName, undefined, locationParts[0], locationParts[1], locationParts[2], line);
6768
}, this);
6869
},

dist/error-stack-parser.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)