Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7241126d7626618003d50470b10d1062baa3e4c8..3a60a322a139ad3c495423cb05ca4581bd3662f3 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15850,8 +15850,8 @@ MaybeObject* PropertyCell::SetValueInferType(Object* value, |
&PropertyCell::UpdateType, |
Handle<PropertyCell>(this), |
Handle<Object>(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; |