| Index: test/cctest/test-regexp.cc
|
| diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
|
| index 071ab1840d0a072f525799aad280ac419bb1331e..504a52bc28177418b316c6ead3961b78dfa1f3e4 100644
|
| --- a/test/cctest/test-regexp.cc
|
| +++ b/test/cctest/test-regexp.cc
|
| @@ -26,6 +26,7 @@
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| #include <cstdlib>
|
| +#include <memory>
|
| #include <sstream>
|
|
|
| #include "include/v8.h"
|
| @@ -485,7 +486,7 @@ static void ExpectError(const char* input, const char* expected,
|
| &reader, flags, &result));
|
| CHECK(result.tree == NULL);
|
| CHECK(!result.error.is_null());
|
| - v8::base::SmartArrayPointer<char> str = result.error->ToCString(ALLOW_NULLS);
|
| + std::unique_ptr<char[]> str = result.error->ToCString(ALLOW_NULLS);
|
| CHECK_EQ(0, strcmp(expected, str.get()));
|
| }
|
|
|
|
|