Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 6a26663b44f87380dfaf9efb5ed16b57467e35ca..1bb491a9dee2aa528f1a85de8a9756f99c8143bf 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -419,12 +419,12 @@ |
} |
-void LookupIterator::WriteDataValue(Handle<Object> value) { |
+Handle<Object> LookupIterator::WriteDataValue(Handle<Object> value) { |
DCHECK_EQ(DATA, state_); |
Handle<JSObject> holder = GetHolder<JSObject>(); |
if (IsElement()) { |
ElementsAccessor* accessor = holder->GetElementsAccessor(); |
- accessor->Set(holder, index_, value); |
+ return accessor->Set(holder, index_, value); |
} else if (holder->IsGlobalObject()) { |
Handle<GlobalDictionary> property_dictionary = |
handle(holder->global_dictionary()); |
@@ -439,6 +439,7 @@ |
} else { |
DCHECK_EQ(v8::internal::DATA_CONSTANT, property_details_.type()); |
} |
+ return value; |
} |