Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index 89b11c9d869b557d159eb97fb23c1afc527da52c..ceea8f404dbd82df680d2bd30963496bbc2187a9 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -563,9 +563,9 @@ TEST(EquivalenceOfLoggingAndTraversal) { |
// The result either be a "true" literal or problem description. |
if (!result->IsTrue()) { |
v8::Local<v8::String> s = result->ToString(); |
- i::ScopedVector<char> data(s->Length() + 1); |
+ i::ScopedVector<char> data(s->Utf8Length() + 1); |
CHECK_NE(NULL, data.start()); |
- s->WriteAscii(data.start()); |
+ s->WriteUtf8(data.start()); |
printf("%s\n", data.start()); |
// Make sure that our output is written prior crash due to CHECK failure. |
fflush(stdout); |