Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index 6f036338e880ac0125d5634ddc0e1fde9eacacb6..45a6a1b25d80204ecd363aff7fd1ae369d488c99 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1175,7 +1175,7 @@ TEST(TrivialSlice) { |
CHECK(result->IsString()); |
string = v8::Utils::OpenHandle(v8::String::Cast(*result)); |
CHECK(string->IsSlicedString()); |
- CHECK_EQ("bcdefghijklmnopqrstuvwxy", *(string->ToCString())); |
+ CHECK_EQ("bcdefghijklmnopqrstuvwxy", string->ToCString().get()); |
} |
@@ -1197,14 +1197,14 @@ TEST(SliceFromSlice) { |
string = v8::Utils::OpenHandle(v8::String::Cast(*result)); |
CHECK(string->IsSlicedString()); |
CHECK(SlicedString::cast(*string)->parent()->IsSeqString()); |
- CHECK_EQ("bcdefghijklmnopqrstuvwxy", *(string->ToCString())); |
+ CHECK_EQ("bcdefghijklmnopqrstuvwxy", string->ToCString().get()); |
result = CompileRun(slice_from_slice); |
CHECK(result->IsString()); |
string = v8::Utils::OpenHandle(v8::String::Cast(*result)); |
CHECK(string->IsSlicedString()); |
CHECK(SlicedString::cast(*string)->parent()->IsSeqString()); |
- CHECK_EQ("cdefghijklmnopqrstuvwx", *(string->ToCString())); |
+ CHECK_EQ("cdefghijklmnopqrstuvwx", string->ToCString().get()); |
} |
@@ -1269,7 +1269,7 @@ TEST(RobustSubStringStub) { |
// Ordinary HeapNumbers can be handled (in runtime). |
result = CompileRun("%_SubString(short, Math.sqrt(4), 5.1);"); |
string = v8::Utils::OpenHandle(v8::String::Cast(*result)); |
- CHECK_EQ("cde", *(string->ToCString())); |
+ CHECK_EQ("cde", string->ToCString().get()); |
CompileRun("var long = 'abcdefghijklmnopqrstuvwxyz';"); |
// Invalid indices. |
@@ -1284,7 +1284,7 @@ TEST(RobustSubStringStub) { |
// Ordinary HeapNumbers within bounds can be handled (in runtime). |
result = CompileRun("%_SubString(long, Math.sqrt(4), 17.1);"); |
string = v8::Utils::OpenHandle(v8::String::Cast(*result)); |
- CHECK_EQ("cdefghijklmnopq", *(string->ToCString())); |
+ CHECK_EQ("cdefghijklmnopq", string->ToCString().get()); |
// Test that out-of-bounds substring of a slice fails when the indices |
// would have been valid for the underlying string. |