diff --git a/src/objects.cc b/src/objects.cc index 7241126d76..3a60a322a1 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -15850,8 +15850,8 @@ MaybeObject* PropertyCell::SetValueInferType(Object* value, &PropertyCell::UpdateType, Handle(this), Handle(value, GetIsolate())); - Type* new_type; - if (maybe_type->To(&new_type)) return maybe_type; + Type* new_type = NULL; + if (!maybe_type->To(&new_type)) return maybe_type; set_type(new_type); } return value;