Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index c38af93f3039dcabed574b76df3b247f61ca7e04..56c81defb4853d497ddc3528b5779e1d3b60cbff 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -445,8 +445,7 @@ TEST(HeapSnapshotConsString) { |
factory->NewStringFromAscii(i::CStrVector("0123456789")); |
i::Handle<i::String> second = |
factory->NewStringFromAscii(i::CStrVector("0123456789")); |
- i::Handle<i::String> cons_string = |
- factory->NewConsString(first, second).ToHandleChecked(); |
+ i::Handle<i::String> cons_string = factory->NewConsString(first, second); |
global->SetInternalField(0, v8::ToApiHandle<v8::String>(cons_string)); |