Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #422 from ochameau/bug/751149-fix-traceback
Browse files Browse the repository at this point in the history
Bug 751149: Support new exception stack format. r=@Mossop
  • Loading branch information
ochameau committed May 2, 2012
2 parents 0772f2d + 95bb7e7 commit f061390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/api-utils/lib/traceback.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ function errorStackToJSON(stack) {
var filename = deParentifyURL(line.slice(atIndex + 1, colonIndex));
var lineNo = parseInt(line.slice(colonIndex + 1));
var funcSig = line.slice(0, atIndex);
var funcName = funcSig.slice(0, funcSig.indexOf("("));
var endFuncName = funcSig.indexOf("(");
// Bug 751149: FF15 changed function signature
// Instead of: runTest([object Object])
// We now have: runTest
var funcName = endFuncName != -1
? funcSig.slice(0, endFuncName)
: funcSig;
frames.unshift({filename: filename,
funcName: funcName,
lineNo: lineNo});
Expand Down

0 comments on commit f061390

Please sign in to comment.