Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 42d19aacde1999e01c454c35039122ff95743d37..ddbee6d12537e5be4420a8f261a7fa52e62a5c74 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2181,7 +2181,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { |
details.index()); |
// Construct a new field descriptors array containing the new descriptor. |
DescriptorArray* new_descriptors; |
- { MaybeObject* maybe_descriptors = instance_desc->CopyInsert(&new_desc); |
+ { MaybeObject* maybe_descriptors = |
+ instance_desc->CopyReplace(&new_desc, index); |
if (!maybe_descriptors->To(&new_descriptors)) return maybe_descriptors; |
} |
// Create a new map featuring the new field descriptors array. |