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 9d67a03078
commit e5f1910eb6

View File

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