| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 4e5b5592dd2b8307af94869e577462c629be849d..45a79c1b3cc4477be0bdc3cfdc4825ba35cd1e1a 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2331,9 +2331,9 @@ Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<Context> context,
|
| int length = keys->length();
|
| // Create a new map and add it to the cache. Reuse the initial map of the
|
| // Object function if the literal has no predeclared properties.
|
| - Handle<Map> map =
|
| - length == 0 ? handle(context->object_function()->initial_map())
|
| - : Map::Create(handle(context->object_function()), length);
|
| + Handle<Map> map = length == 0
|
| + ? handle(context->object_function()->initial_map())
|
| + : Map::Create(isolate(), length);
|
| AddToMapCache(context, keys, map);
|
| return map;
|
| }
|
|
|