Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 064c76b135310756c539bcc4191f42210c336946..976798b271bce0ebad8253f9a3e2d41f392a904b 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -2871,8 +2871,8 @@ RUNTIME_FUNCTION(Runtime_LoadElementWithInterceptor) { |
DCHECK(args.smi_at(1) >= 0); |
uint32_t index = args.smi_at(1); |
Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, Object::GetElement(isolate, receiver, index)); |
+ LookupIterator it(isolate, receiver, index, receiver); |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, Object::GetProperty(&it)); |
return *result; |
} |