Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index f58867de318ce7a26c12e4147476a168042e51f6..b62e59dc4071119c54d66f75302fa3f230c722c9 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3560,7 +3560,7 @@ Local<v8::Object> v8::Object::Clone() { |
ENTER_V8(isolate); |
i::Handle<i::JSObject> self = Utils::OpenHandle(this); |
EXCEPTION_PREAMBLE(isolate); |
- i::Handle<i::JSObject> result = i::JSObject::Copy(self); |
+ i::Handle<i::JSObject> result = isolate->factory()->CopyJSObject(self); |
has_pending_exception = result.is_null(); |
EXCEPTION_BAILOUT_CHECK(isolate, Local<Object>()); |
return Utils::ToLocal(result); |
@@ -5774,7 +5774,8 @@ Local<Object> Array::CloneElementAt(uint32_t index) { |
i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon)); |
EXCEPTION_PREAMBLE(isolate); |
ENTER_V8(isolate); |
- i::Handle<i::JSObject> result = i::JSObject::Copy(paragon_handle); |
+ i::Handle<i::JSObject> result = |
+ isolate->factory()->CopyJSObject(paragon_handle); |
has_pending_exception = result.is_null(); |
EXCEPTION_BAILOUT_CHECK(isolate, Local<Object>()); |
return Utils::ToLocal(result); |