Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 67810ef1524303f463c9b3b3775d11796a3f62c7..a88bcd72686120ba2219008af6bfa8838a12cad6 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -209,9 +209,7 @@ static Handle<Map> ComputeObjectLiteralMap( |
return isolate->factory()->ObjectLiteralMapFromCache(context, keys); |
} |
*is_result_from_cache = false; |
- return isolate->factory()->CopyMap( |
- Handle<Map>(context->object_function()->initial_map()), |
- number_of_properties); |
+ return Map::Create(handle(context->object_function()), number_of_properties); |
} |