Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 3537) |
+++ src/runtime.cc (working copy) |
@@ -5409,6 +5409,8 @@ |
index_offset_ += delta; |
} |
+ Handle<FixedArray> storage() { return storage_; } |
+ |
private: |
Handle<FixedArray> storage_; |
uint32_t index_limit_; |
@@ -5718,7 +5720,8 @@ |
IterateArguments(arguments, &visitor); |
result->set_length(*len); |
- result->set_elements(*storage); |
+ // Please note the storage might have changed in the visitor. |
+ result->set_elements(*visitor.storage()); |
return *result; |
} |