Closed Bug 751149 Opened 12 years ago Closed 12 years ago

"test-traceback.testFromExceptionWithError" fails with "throwErro != throwError"

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

Stack exposed by exception object has recently changed:

  var Cu = Components.utils;
  function foo(a, b) {
    return new Error().stack;
  }
  Cu.reportError(foo("a", "b"));

In FF12 we have the following string:
  foo("a","b")@Scratchpad:12
  @Scratchpad:14

Whereas we get this in Nightly:
  foo@Scratchpad:12
  @Scratchpad:14

So function arguments are no more displayed on stack trace.
It ends up breaking our string parser in traceback.js
Attached file Pull request 422
Assignee: nobody → poirot.alex
Attachment #620303 - Flags: review?(rFobic)
Attachment #620303 - Flags: review?(rFobic) → review+
Commits pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/95bb7e77e256c6ddd57b2c4eb3b1a6d5f921b4a9
Bug 751149: Support new exception stack format.

https://github.com/mozilla/addon-sdk/commit/f061390491466c014a75c7666cf138017180b933
Merge pull request #422 from ochameau/bug/751149-fix-traceback

Bug 751149: Support new exception stack format. r=@mossop
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
So this is the only thing still failing on Aurora after bug 751077 landed there tonight.
I think we just need to land a change to jetpack-location.txt to get Aurora testing our latest SDK code that includes this fix.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: