Chromium Code Reviews| Index: webkit/glue/devtools/js/devtools.js |
| =================================================================== |
| --- webkit/glue/devtools/js/devtools.js (revision 37405) |
| +++ webkit/glue/devtools/js/devtools.js (working copy) |
| @@ -420,7 +420,7 @@ |
| var orig = InjectedScriptAccess.prototype.getCompletions; |
| InjectedScriptAccess.prototype.getCompletions = function(expressionString, |
| includeInspectorCommandLineAPI, callFrameId, reportCompletions) { |
| - if (goog.isDef(callFrameId)) { |
| + if (typeof callFrameId === "number") { |
|
yurys
2010/01/28 21:20:25
Could you explain why the old code didn't work?
|
| devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( |
| expressionString, callFrameId, reportCompletions); |
| } else { |