Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 60dc0b7a8d7a67fe2b507e10e23e89f15e24e881..864672143a800e0e6b5a4672f6697786f35a5341 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1318,7 +1318,7 @@ Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { |
// maps between prototypes of different constructors. |
Handle<JSFunction> object_function(native_context->object_function()); |
ASSERT(object_function->has_initial_map()); |
- new_map = Map::Copy(handle(object_function->initial_map())); |
+ new_map = Map::CopyAsPrototypeMap(handle(object_function->initial_map())); |
} |
Handle<JSObject> prototype = NewJSObjectFromMap(new_map); |