summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/devtools/js/debugger_agent.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/webkit/glue/devtools/js/debugger_agent.js b/webkit/glue/devtools/js/debugger_agent.js
index 3e58e80..c403a0b 100644
--- a/webkit/glue/devtools/js/debugger_agent.js
+++ b/webkit/glue/devtools/js/debugger_agent.js
@@ -566,13 +566,7 @@ devtools.DebuggerAgent.formatCallFrame_ = function(stackFrame, script, msg) {
*/
devtools.DebuggerAgent.formatFunctionCall_ = function(stackFrame, msg) {
var func = msg.lookup(stackFrame.func.ref);
- if (func.name) {
- return func.name;
- } else {
- // TODO(yurys): support method name inference(F.m = function() {} should be
- // a function with name 'm')
- return '(anonymous function)';
- }
+ return func.name || func.inferredName || '(anonymous function)';
};