Skip to content

Commit 24687ec

Browse files
committed
Allow stacktraces with no location information in Safari. Should fix #16.
1 parent 877d39e commit 24687ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error-stack-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
return this.parseOpera(error);
2929
} else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {
3030
return this.parseV8OrIE(error);
31-
} else if (error.stack && error.stack.match(FIREFOX_SAFARI_STACK_REGEXP)) {
31+
} else if (error.stack) {
3232
return this.parseFFOrSafari(error);
3333
} else {
3434
throw new Error('Cannot parse given Error object');

0 commit comments

Comments
 (0)