Revision: 9109
Author:   [email protected]
Date:     Thu Sep  1 07:02:35 2011
Log:      Changed printing of immediate result in d8's interactive shell.
BUG=v8:371

Review URL: http://codereview.chromium.org/7792055
http://code.google.com/p/v8/source/detail?r=9109

Modified:
 /branches/bleeding_edge/src/d8.cc

=======================================
--- /branches/bleeding_edge/src/d8.cc   Tue Aug 30 11:45:48 2011
+++ /branches/bleeding_edge/src/d8.cc   Thu Sep  1 07:02:35 2011
@@ -176,8 +176,8 @@
         // If all went well and the result wasn't undefined then print
         // the returned value.
         v8::String::Utf8Value str(result);
-        const char* cstr = ToCString(str);
-        printf("%s\n", cstr);
+        fwrite(*str, sizeof(**str), str.length(), stdout);
+        printf("\n");
       }
       return true;
     }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to