Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 31ece04a0b820beac92c3f3b3a46182628339937..8fd777a362c1997240d850bb4f3d1bc486df9e50 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1365,7 +1365,9 @@ Object* StoreIC_ArrayLength(Arguments args) { |
JSObject* receiver = JSObject::cast(args[0]); |
Object* len = args[1]; |
- return receiver->SetElementsLength(len); |
+ Object* result = receiver->SetElementsLength(len); |
+ if (result->IsFailure()) return result; |
+ return len; |
} |