mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 959818 - Make DumpJSStack dump out all frames, r=bholley
--HG-- extra : rebase_source : 61fe2ae3a0eaee3b7481ce0042f64db8faaeb475
This commit is contained in:
parent
b18e1f1b6d
commit
2d3b4f11d5
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user