Bug 1101083 - js_DumpBacktrace should dump all frames (r=bholley,nbp)

This commit is contained in:
Bill McCloskey 2014-11-18 21:45:01 -08:00
parent 768e5c4d9b
commit 4eeb9ffd27

View File

@ -4153,7 +4153,7 @@ js_DumpBacktrace(JSContext *cx)
Sprinter sprinter(cx);
sprinter.init();
size_t depth = 0;
for (ScriptFrameIter i(cx); !i.done(); ++i, ++depth) {
for (AllFramesIter i(cx); !i.done(); ++i, ++depth) {
const char *filename = JS_GetScriptFilename(i.script());
unsigned line = PCToLineNumber(i.script(), i.pc());
JSScript *script = i.script();