Chromium Code Reviews| Index: src/d8.cc |
| diff --git a/src/d8.cc b/src/d8.cc |
| index 025c7729170128aa691e299ae9aa433faf81630f..729ce88bbc948a0a8b89c792b3870d872821368c 100644 |
| --- a/src/d8.cc |
| +++ b/src/d8.cc |
| @@ -176,8 +176,8 @@ bool Shell::ExecuteString(Handle<String> source, |
| // 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"); |
|
Yang
2011/09/01 12:04:06
Same behavior as Shell::Write now.
|
| } |
| return true; |
| } |