Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: src/mirror-debugger.js

Issue 7388011: Fix the debugger for strict-mode functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add new test file instead. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | test/mjsunit/debug-receiver.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mirror-debugger.js
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js
index 0a32597fabb66b011b27f443a621d9cf507f1604..8646957542de29ffb0e0b1d5cc674f1684622d98 100644
--- a/src/mirror-debugger.js
+++ b/src/mirror-debugger.js
@@ -1605,7 +1605,7 @@ 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()) {
+ if (receiver.isObject()) {
for (var r = receiver; !r.isNull() && property.isUndefined(); r = r.protoObject()) {
Vitaly Repeshko 2011/07/18 13:04:50 nit: While we're here let's fix the long line.
Mads Ager (chromium) 2011/07/18 14:27:07 Done.
property = r.lookupProperty(func);
}
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | test/mjsunit/debug-receiver.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698