From 4eeb9ffd27f7056a3a0e2b731f864a6143c482fc Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Tue, 18 Nov 2014 21:45:01 -0800 Subject: [PATCH] Bug 1101083 - js_DumpBacktrace should dump all frames (r=bholley,nbp) --- js/src/jsobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index e658f8c64f9..b751cbc2387 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -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();