Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 8147106aaab168b8bbfa825f92ee5c310ace1359..a148c21e76d1901b2fa3b86cf6ca44fd059df968 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15865,8 +15865,8 @@ MaybeObject* PropertyCell::SetValueInferType(Object* value, |
&PropertyCell::UpdateType, |
Handle<PropertyCell>(this), |
Handle<Object>(value, GetIsolate())); |
- if (maybe_type->IsFailure()) return maybe_type; |
- Type* new_type = static_cast<Type*>(maybe_type); |
+ Type* new_type; |
+ if (maybe_type->To(&new_type)) return maybe_type; |
set_type(new_type); |
} |
return value; |