Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 5363) |
+++ src/objects.cc (working copy) |
@@ -2683,7 +2683,8 @@ |
Object* JSObject::PreventExtensions() { |
// If there are fast elements we normalize. |
if (HasFastElements()) { |
- NormalizeElements(); |
+ Object* ok = NormalizeElements(); |
+ if (ok->IsFailure()) return ok; |
} |
// Make sure that we never go back to fast case. |
element_dictionary()->set_requires_slow_elements(); |