Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 783c3f7536b69a423388f54702943a16b4b35c87..fa1ae0259ad15a914afa4707bfa9aa423199ee4d 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -420,7 +420,7 @@ void LookupIterator::WriteDataValue(Handle<Object> value) { |
Handle<JSObject> holder = GetHolder<JSObject>(); |
if (IsElement()) { |
ElementsAccessor* accessor = holder->GetElementsAccessor(); |
- accessor->Set(holder, index_, value); |
+ accessor->Set(handle(holder->elements()), index_, value); |
} else if (holder->IsGlobalObject()) { |
Handle<GlobalDictionary> property_dictionary = |
handle(holder->global_dictionary()); |