Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d2ad0b7f5e866db7b3abc6b6e7b8d601db2989cd..9478549cde74dfe585b0ed349d214f9d24f45527 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12465,7 +12465,8 @@ Handle<Object> JSObject::SetFastDoubleElement( |
// Otherwise default to slow case. |
ASSERT(object->HasFastDoubleElements()); |
ASSERT(object->map()->has_fast_double_elements()); |
- ASSERT(object->elements()->IsFixedDoubleArray()); |
+ ASSERT(object->elements()->IsFixedDoubleArray() || |
+ object->elements()->length() == 0); |
NormalizeElements(object); |
ASSERT(object->HasDictionaryElements()); |