Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 2611b57aef1a6aae6f9efa3b137fab0a717d91c0..63443ba5259b33a7f34d17bec3b145d1d0ea94e4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15836,9 +15836,7 @@ Type* PropertyCell::UpdateType(Handle<PropertyCell> cell, |
Handle<Object> value) { |
Isolate* isolate = cell->GetIsolate(); |
Handle<Type> old_type(cell->type(), isolate); |
- Handle<Type> new_type((value->IsSmi() || value->IsUndefined()) |
- ? Type::Constant(value, isolate) |
- : Type::Any(), isolate); |
+ Handle<Type> new_type(Type::Constant(value, isolate), isolate); |
if (new_type->Is(old_type)) { |
return *old_type; |