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

Unified Diff: webkit/glue/devtools/js/devtools.js

Issue 558022: DevTools: fix console autocomplete against global object (while not on a brea... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698