JSBool xpc_DumpJSStack(JSContext* cx, JSBool showArgs, JSBool showLocals, JSBool showThisProps) { if (char* buf = xpc_PrintJSStack(cx, showArgs, showLocals, showThisProps)) { fputs(buf, stdout); JS_smprintf_free(buf); } return true; }
JSBool xpc_DumpJSStack(JSContext* cx, JSBool showArgs, JSBool showLocals, JSBool showThisProps) { if (char* buf = xpc_PrintJSStack(cx, showArgs, showLocals, showThisProps)) { DebugDump("%s\n", buf); JS_smprintf_free(buf); } return true; }