Bug 433529: Part 3 - Change error stack traces to use displayAtom() instead of atom(). r=jimb

This commit is contained in:
Alex Crichton 2012-08-18 21:37:23 -07:00
parent 851f93080a
commit 828e18ca1c
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);