Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index e7c4cc9069ee62c0a93dabd976ded0bd26daa97c..c7ca1811ef1b0ebd2c53d44eaedbe556012f20d7 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -348,10 +348,8 @@ MaybeObject* TransitionElements(Handle<Object> object, |
ElementsKind from_kind = |
Handle<JSObject>::cast(object)->map()->elements_kind(); |
if (Map::IsValidElementsTransition(from_kind, to_kind)) { |
- Handle<Object> result = JSObject::TransitionElementsKind( |
- Handle<JSObject>::cast(object), to_kind); |
- if (result.is_null()) return isolate->ThrowIllegalOperation(); |
- return *result; |
+ JSObject::TransitionElementsKind(Handle<JSObject>::cast(object), to_kind); |
+ return *object; |
} |
return isolate->ThrowIllegalOperation(); |
} |