Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 0701c70eb6a129be041edcf59809b87c6ae54eb7..4da38051f9200746250867e23f9cc4228c524178 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -859,9 +859,9 @@ function CallSiteGetMethodName() { |
} |
var name = null; |
for (var prop in this.receiver) { |
- if (this.receiver.__lookupGetter__(prop) === this.fun || |
- this.receiver.__lookupSetter__(prop) === this.fun || |
- (!this.receiver.__lookupGetter__(prop) && |
+ if (%_CallFunction(this.receiver, prop, ObjectLookupGetter) === this.fun || |
+ %_CallFunction(this.receiver, prop, ObjectLookupSetter) === this.fun || |
+ (!%_CallFunction(this.receiver, prop, ObjectLookupGetter) && |
this.receiver[prop] === this.fun)) { |
// If we find more than one match bail out to avoid confusion. |
if (name) { |