Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 1f6c90869d42c0a2af11adeb2c12e1e943901281..9d4fbc64c0b37d92c10489163be884bc1f867766 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -2866,14 +2866,14 @@ RUNTIME_FUNCTION(StorePropertyWithInterceptor) { |
RUNTIME_FUNCTION(LoadElementWithInterceptor) { |
+ // TODO(verwaest): This should probably get the holder and receiver as input. |
HandleScope scope(isolate); |
Handle<JSObject> receiver = args.at<JSObject>(0); |
DCHECK(args.smi_at(1) >= 0); |
uint32_t index = args.smi_at(1); |
Handle<Object> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, |
- JSObject::GetElementWithInterceptor(receiver, receiver, index, true)); |
+ isolate, result, Object::GetElement(isolate, receiver, index)); |
return *result; |
} |