mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
Bug 433529: Part 3 - Change error stack traces to use displayAtom() instead of atom(). r=jimb
This commit is contained in:
parent
851f93080a
commit
828e18ca1c
@ -282,7 +282,7 @@ InitExnPrivate(JSContext *cx, HandleObject exnObject, HandleString message,
|
||||
return false;
|
||||
JSStackTraceStackElem &frame = frames.back();
|
||||
if (i.isNonEvalFunctionFrame()) {
|
||||
JSAtom *atom = fp->fun()->atom();
|
||||
JSAtom *atom = fp->fun()->displayAtom();
|
||||
if (atom == NULL)
|
||||
atom = cx->runtime->emptyString;
|
||||
frame.funName = atom;
|
||||
|
@ -136,8 +136,8 @@ expect = '@';
|
||||
addThis();
|
||||
|
||||
status = inSection(12);
|
||||
actual = stackFrames[1].substring(0,1);
|
||||
expect = '@';
|
||||
actual = stackFrames[1].substring(0,7);
|
||||
expect = 'myErr<@';
|
||||
addThis();
|
||||
|
||||
status = inSection(13);
|
||||
|
Loading…
Reference in New Issue
Block a user