Backed out changeset 650ad3cd7e52 because of xpcshell test failure
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 29 Nov 2010 18:15:24 -0500
changeset 58350 e96da44dcae1fa8c1756a13adad00f6d84fc73a3
parent 58345 650ad3cd7e520eb93ba73ecedc40212d4c81efb0
child 58351 82f2a2e86728efad2c08abd9a1b7a916817426a7
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
backs out650ad3cd7e520eb93ba73ecedc40212d4c81efb0
Backed out changeset 650ad3cd7e52 because of xpcshell test failure
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;