Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 1eb9e25482c944c7d8d182bcf7333efd4e16a765..f8ac8ce11197d61718672315b6bdb658c036c637 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -28,6 +28,7 @@ |
#include <climits> |
#include <csignal> |
#include <map> |
+#include <memory> |
#include <string> |
#include "test/cctest/test-api.h" |
@@ -19263,8 +19264,7 @@ TEST(ContainsOnlyOneByte) { |
const int length = 512; |
// Ensure word aligned assignment. |
const int aligned_length = length*sizeof(uintptr_t)/sizeof(uint16_t); |
- v8::base::SmartArrayPointer<uintptr_t> aligned_contents( |
- new uintptr_t[aligned_length]); |
+ std::unique_ptr<uintptr_t[]> aligned_contents(new uintptr_t[aligned_length]); |
uint16_t* string_contents = |
reinterpret_cast<uint16_t*>(aligned_contents.get()); |
// Set to contain only one byte. |