Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 3cc35e75f0f91f887ecdfe11d495f01159ad76a6..add555531b3447ed377d7548b14ce4c6cab569a2 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -675,7 +675,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event, |
} else { |
CHECK(result->IsString()); |
v8::Handle<v8::String> function_name(result->ToString()); |
- function_name->WriteAscii(last_function_hit); |
+ function_name->WriteUtf8(last_function_hit); |
} |
} |
@@ -710,7 +710,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event, |
} else { |
CHECK(result->IsString()); |
v8::Handle<v8::String> script_name(result->ToString()); |
- script_name->WriteAscii(last_script_name_hit); |
+ script_name->WriteUtf8(last_script_name_hit); |
} |
} |
@@ -726,7 +726,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event, |
result = result->ToString(); |
CHECK(result->IsString()); |
v8::Handle<v8::String> script_data(result->ToString()); |
- script_data->WriteAscii(last_script_data_hit); |
+ script_data->WriteUtf8(last_script_data_hit); |
} |
} |
@@ -746,7 +746,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event, |
result = result->ToString(); |
CHECK(result->IsString()); |
v8::Handle<v8::String> script_data(result->ToString()); |
- script_data->WriteAscii(last_script_data_hit); |
+ script_data->WriteUtf8(last_script_data_hit); |
} |
} |
} |
@@ -6376,7 +6376,7 @@ static void DebugEventDebugBreak( |
} else { |
CHECK(result->IsString()); |
v8::Handle<v8::String> function_name(result->ToString()); |
- function_name->WriteAscii(last_function_hit); |
+ function_name->WriteUtf8(last_function_hit); |
} |
} |
@@ -7176,7 +7176,7 @@ static void DebugEventBreakDeoptimize(v8::DebugEvent event, |
char fn[80]; |
CHECK(result->IsString()); |
v8::Handle<v8::String> function_name(result->ToString()); |
- function_name->WriteAscii(fn); |
+ function_name->WriteUtf8(fn); |
if (strcmp(fn, "bar") == 0) { |
i::Deoptimizer::DeoptimizeAll(v8::internal::Isolate::Current()); |
debug_event_break_deoptimize_done = true; |