Bug 959818 - Make DumpJSStack dump out all frames, r=bholley

--HG--
extra : rebase_source : 61fe2ae3a0eaee3b7481ce0042f64db8faaeb475
This commit is contained in:
Steve Fink 2014-01-14 14:18:46 -08:00
parent b18e1f1b6d
commit 2d3b4f11d5

View File

@ -749,7 +749,7 @@ FormatValue(JSContext *cx, const Value &vArg, JSAutoByteString &bytes)
}
static char *
FormatFrame(JSContext *cx, const NonBuiltinScriptFrameIter &iter, char *buf, int num,
FormatFrame(JSContext *cx, const ScriptFrameIter &iter, char *buf, int num,
bool showArgs, bool showLocals, bool showThisProps)
{
MOZ_ASSERT(!cx->isExceptionPending());
@ -921,7 +921,7 @@ JS::FormatStackDump(JSContext *cx, char *buf, bool showArgs, bool showLocals, bo
{
int num = 0;
for (NonBuiltinScriptFrameIter i(cx); !i.done(); ++i) {
for (AllFramesIter i(cx); !i.done(); ++i) {
buf = FormatFrame(cx, i, buf, num, showArgs, showLocals, showThisProps);
num++;
}