Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index d8af3d198b1c7dbfb7fddbd32cc1b05edeb73643..982977adba268039cf05597e6352194202298906 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -756,7 +756,7 @@ TEST(JSArray) { |
Handle<JSObject> object = factory->NewJSObject(function); |
Handle<JSArray> array = Handle<JSArray>::cast(object); |
// We just initialized the VM, no heap allocation failure yet. |
- array->Initialize(0)->ToObjectChecked(); |
+ JSArray::Initialize(array, 0); |
// Set array length to 0. |
array->SetElementsLength(Smi::FromInt(0))->ToObjectChecked(); |