Bug 613516 - xpcshell dump doesn't print newlines. r=jorendorff, a=blocking

This commit is contained in:
Igor Bukanov 2010-11-29 13:27:27 -08:00
parent 31bc792e51
commit c0da529140

View File

@ -449,7 +449,11 @@ Dump(JSContext *cx, uintN argc, jsval *vp)
if (!str) if (!str)
return JS_FALSE; return JS_FALSE;
JS_FileEscapedString(gOutFile, str, 0); JSAutoByteString bytes(cx, str);
if (!bytes)
return JS_FALSE;
fputs(bytes.ptr(), gOutFile);
fflush(gOutFile); fflush(gOutFile);
return JS_TRUE; return JS_TRUE;
} }