Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index fc22929fd0ab392744025cea88b1dfbdd09f2330..7c60252156e3382c8d7ff28d7cdf4fb21b15de92 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3600,7 +3600,7 @@ void v8::Object::TurnOnAccessCheck() { |
i::Handle<i::Map> new_map = i::Map::Copy(i::Handle<i::Map>(obj->map())); |
new_map->set_is_access_check_needed(true); |
- obj->set_map(*new_map); |
+ i::JSObject::MigrateToMap(obj, new_map); |
} |