From da9d854ade0fbd1eda793b6a2825df37ba4c2ef4 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 29 Nov 2010 18:15:24 -0500 Subject: [PATCH] Backed out changeset 650ad3cd7e52 because of xpcshell test failure --- js/src/xpconnect/shell/xpcshell.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/src/xpconnect/shell/xpcshell.cpp b/js/src/xpconnect/shell/xpcshell.cpp index 277d3c4a2042..85ee59f2c239 100644 --- a/js/src/xpconnect/shell/xpcshell.cpp +++ b/js/src/xpconnect/shell/xpcshell.cpp @@ -449,11 +449,7 @@ Dump(JSContext *cx, uintN argc, jsval *vp) 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; }