Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 72dfc647fb3ae7990106a09e8f06918c42649e51..6abe3c6a84f273d73fbe04107391234bb6c5c374 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3234,7 +3234,7 @@ void v8::Object::TurnOnAccessCheck() { |
i::Deoptimizer::DeoptimizeGlobalObject(*obj); |
i::Handle<i::Map> new_map = |
- isolate->factory()->CopyMapDropTransitions(i::Handle<i::Map>(obj->map())); |
+ isolate->factory()->CopyMap(i::Handle<i::Map>(obj->map())); |
new_map->set_is_access_check_needed(true); |
obj->set_map(*new_map); |
} |