Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index f56db70f14f895d310dc8ebb033ef7e64c3a2d8f..679bb443b012d81c95b24d88befccbc6491f9600 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -933,7 +933,7 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors( |
if (0 < descriptor_count) { |
result->SetLastAdded(array->LastAdded()); |
for (int i = 0; i < descriptor_count; i++) { |
- DescriptorArray::CopyFrom(result, i, array, i, witness); |
+ result->CopyFrom(i, *array, i, witness); |
} |
} |
@@ -967,7 +967,7 @@ Handle<DescriptorArray> Factory::CopyAppendCallbackDescriptors( |
Handle<DescriptorArray> new_result = |
NewDescriptorArray(new_number_of_descriptors); |
for (int i = 0; i < new_number_of_descriptors; i++) { |
- DescriptorArray::CopyFrom(new_result, i, result, i, witness); |
+ new_result->CopyFrom(i, *result, i, witness); |
} |
result = new_result; |
} |