| Index: test/cctest/test-regexp.cc
|
| diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
|
| index 46ac88cd9241e5a5d48d457bb4ed5a291f50b1e4..89a911274b18e276dee0e183e1503c91abe728d1 100644
|
| --- a/test/cctest/test-regexp.cc
|
| +++ b/test/cctest/test-regexp.cc
|
| @@ -79,7 +79,7 @@ static bool CheckParse(const char* input) {
|
| }
|
|
|
|
|
| -static SmartPointer<const char> Parse(const char* input) {
|
| +static SmartArrayPointer<const char> Parse(const char* input) {
|
| V8::Initialize(NULL);
|
| v8::HandleScope scope;
|
| ZoneScope zone_scope(Isolate::Current(), DELETE_ON_EXIT);
|
| @@ -88,7 +88,7 @@ static SmartPointer<const char> Parse(const char* input) {
|
| CHECK(v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| CHECK(result.tree != NULL);
|
| CHECK(result.error.is_null());
|
| - SmartPointer<const char> output = result.tree->ToString();
|
| + SmartArrayPointer<const char> output = result.tree->ToString();
|
| return output;
|
| }
|
|
|
| @@ -391,7 +391,7 @@ static void ExpectError(const char* input,
|
| CHECK(!v8::internal::RegExpParser::ParseRegExp(&reader, false, &result));
|
| CHECK(result.tree == NULL);
|
| CHECK(!result.error.is_null());
|
| - SmartPointer<char> str = result.error->ToCString(ALLOW_NULLS);
|
| + SmartArrayPointer<char> str = result.error->ToCString(ALLOW_NULLS);
|
| CHECK_EQ(expected, *str);
|
| }
|
|
|
| @@ -423,7 +423,7 @@ TEST(Errors) {
|
| for (int i = 0; i <= kMaxCaptures; i++) {
|
| accumulator.Add("()");
|
| }
|
| - SmartPointer<const char> many_captures(accumulator.ToCString());
|
| + SmartArrayPointer<const char> many_captures(accumulator.ToCString());
|
| ExpectError(*many_captures, kTooManyCaptures);
|
| }
|
|
|
|
|