Backed out changeset 3ae7ac6aefd1 due to permaorange on central. a=orange
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 30 Nov 2010 00:25:02 +0100
changeset 59366 06b0d231434814805a6955a7b67b59e0ca4d7fba
parent 59365 3ae7ac6aefd17cdc98c73c2e24dfecaf0de5c85d
child 59367 080549b4c0f894b99ebe24bfc9614401a22c36bd
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersorange
milestone2.0b8pre
backs out3ae7ac6aefd17cdc98c73c2e24dfecaf0de5c85d
Backed out changeset 3ae7ac6aefd1 due to permaorange on central. a=orange
js/src/xpconnect/shell/xpcshell.cpp
--- a/js/src/xpconnect/shell/xpcshell.cpp
+++ b/js/src/xpconnect/shell/xpcshell.cpp
@@ -444,21 +444,17 @@ Dump(JSContext *cx, uintN argc, jsval *v
     JSString *str;
     if (!argc)
         return JS_TRUE;
 
     str = JS_ValueToString(cx, JS_ARGV(cx, vp)[0]);
     if (!str)
         return JS_FALSE;
 
-    JSAutoByteString bytes(cx, str);
-    if (!bytes)
-        return JS_FALSE;
-    
-    fputs(bytes.ptr(), gOutFile);
+    JS_FileEscapedString(gOutFile, str, 0);
     fflush(gOutFile);
     return JS_TRUE;
 }
 
 static JSBool
 Load(JSContext *cx, uintN argc, jsval *vp)
 {
     uintN i;