Bug 645532 - Make content process xpcshell print newlines. r=mrbkap

This commit is contained in:
Josh Matthews 2011-06-02 13:11:54 +02:00
parent 7406ce377f
commit 9922293ca0

View File

@ -295,7 +295,11 @@ Dump(JSContext *cx,
str = JS_ValueToString(cx, JS_ARGV(cx, vp)[0]);
if (!str)
return JS_FALSE;
JS_FileEscapedString(stdout, str, 0);
JSAutoByteString bytes(cx, str);
if (!bytes)
return JS_FALSE;
fputs(bytes.ptr(), stdout);
fflush(stdout);
return JS_TRUE;
}