Index: test/cctest/test-func-name-inference.cc |
diff --git a/test/cctest/test-func-name-inference.cc b/test/cctest/test-func-name-inference.cc |
index 77ba2f2243f0039b32e2da9330d5dbe8324a32ed..9d6349dbbfd9fa4ad7a97dee01be7cb604739821 100644 |
--- a/test/cctest/test-func-name-inference.cc |
+++ b/test/cctest/test-func-name-inference.cc |
@@ -25,6 +25,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+#include <memory> |
#include "src/v8.h" |
@@ -34,7 +35,6 @@ |
#include "test/cctest/cctest.h" |
-using ::v8::base::SmartArrayPointer; |
using ::v8::internal::CStrVector; |
using ::v8::internal::Factory; |
using ::v8::internal::Handle; |
@@ -85,7 +85,7 @@ static void CheckFunctionName(v8::Local<v8::Script> script, |
isolate->debug()->FindSharedFunctionInfoInScript(i_script, func_pos)); |
// Verify inferred function name. |
- SmartArrayPointer<char> inferred_name = |
+ std::unique_ptr<char[]> inferred_name = |
shared_func_info->inferred_name()->ToCString(); |
i::PrintF("expected: %s, found: %s\n", ref_inferred_name, |
inferred_name.get()); |