Skip to content

Commit f21e8f2

Browse files
committed
Fixing stacktrace parser in Firefox, weakening function name pattern
1 parent 86da9a4 commit f21e8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/firefox-driver/js/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fxdriver.error.toJSON = function(ex) {
5353
lineNumber = Number(match[2]);
5454
}
5555

56-
match = frame.match(/^([a-zA-Z_$][\w./<$]*)?(?:\(.*\))?@(.+)?$/);
56+
match = frame.match(/^([\w./<$]+)?(?:\(.*\))?@(.+)?$/);
5757
stackFrames.push({
5858
'methodName': match[1],
5959
'fileName': match[2],

0 commit comments

Comments
 (0)