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