Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 192fed2081cce9301b095138bdfacb5199f6d5ba..b822814744517f08e268521602b2327d74cde14a 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2166,7 +2166,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionSetReadOnlyPrototype) { |
// Construct a new field descriptor with updated attributes. |
DescriptorArray* instance_desc = function->map()->instance_descriptors(); |
- int index = instance_desc->SearchWithCache(name); |
+ int index = instance_desc->SearchWithCache(name, function->map()); |
ASSERT(index != DescriptorArray::kNotFound); |
PropertyDetails details = instance_desc->GetDetails(index); |