A little helper function to make life in gdb more bearable (DEBUG only, no bug, r=danderson).

This commit is contained in:
Andreas Gal
2009-02-28 16:21:18 -08:00
parent c9c5f32423
commit 4dc5e095d7

View File

@@ -241,6 +241,12 @@ js_Disassemble(JSContext *cx, JSScript *script, JSBool lines, FILE *fp)
return JS_TRUE;
}
JSBool
js_DumpScript(JSContext *cx, JSScript *script)
{
return js_Disassemble(cx, script, true, stdout);
}
const char *
ToDisassemblySource(JSContext *cx, jsval v)
{