| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 1e6a442b50e66ff86a135d57816fa50f3a3507a8..d1e857add81241d44434d1e55b2b701458a3aac2 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -2183,7 +2183,7 @@ static Handle<JSObject> NewJSObjectWithNullProto(Isolate* isolate) {
|
| isolate->factory()->NewJSObject(isolate->object_function());
|
| Handle<Map> new_map =
|
| Map::Copy(Handle<Map>(result->map()), "ObjectWithNullProto");
|
| - new_map->SetPrototype(isolate->factory()->null_value());
|
| + Map::SetPrototype(new_map, isolate->factory()->null_value());
|
| JSObject::MigrateToMap(result, new_map);
|
| return result;
|
| }
|
|
|