Index: src/mirror-debugger.js |
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js |
index 0a32597fabb66b011b27f443a621d9cf507f1604..bad08002d7c5ae1ed4f12ca45619d8c49da3616e 100644 |
--- a/src/mirror-debugger.js |
+++ b/src/mirror-debugger.js |
@@ -1605,8 +1605,10 @@ FrameMirror.prototype.invocationText = function() { |
// Try to find the function as a property in the receiver. Include the |
// prototype chain in the lookup. |
var property = GetUndefinedMirror(); |
- if (!receiver.isUndefined()) { |
- for (var r = receiver; !r.isNull() && property.isUndefined(); r = r.protoObject()) { |
+ if (receiver.isObject()) { |
+ for (var r = receiver; |
+ !r.isNull() && property.isUndefined(); |
+ r = r.protoObject()) { |
property = r.lookupProperty(func); |
} |
} |