Merge backout; a=bustage
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 29 Nov 2010 18:15:36 -0500
changeset 58351 82f2a2e86728efad2c08abd9a1b7a916817426a7
parent 58349 8855a25370b325b6e98e6cf6fbb2beff67ffc1f8 (current diff)
parent 58350 e96da44dcae1fa8c1756a13adad00f6d84fc73a3 (diff)
child 58352 dd249f45dc3d1c9661c24ea5d7ae8728a3b46d98
push id17258
push usereakhgari@mozilla.com
push dateMon, 29 Nov 2010 23:15:45 +0000
treeherdermozilla-central@82f2a2e86728 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Merge backout; a=bustage
--- 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;