Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 2001b3dfaf41615dfc27972050127eb57f865722..3a5820d64ec753f98fbf4ad855a7f1658c224a3b 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -818,7 +818,7 @@ TEST(JSObjectCopy) { |
// Make the clone. |
Handle<Object> value1, value2; |
- Handle<JSObject> clone = JSObject::Copy(obj); |
+ Handle<JSObject> clone = factory->CopyJSObject(obj); |
CHECK(!clone.is_identical_to(obj)); |
value1 = Object::GetElement(isolate, obj, 0).ToHandleChecked(); |