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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js

Issue 2639703002: DevTools: Console: Provide autocompletions for Maps (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
index 6fab8931dd0b103471cd9fed7a4482a5bc7fbce8..73fcb4873211eb20dad6cc69cd932a1e83bbd927 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
@@ -263,7 +263,7 @@ Console.ConsolePrompt = class extends UI.Widget {
var historyWords = this._historyCompletions(query, force);
var excludedTokens = new Set(['js-comment', 'js-string-2']);
- if (!before.endsWith('['))
+ if (!before.match(/\[\s*$/) && !before.match(/\.\s*[gs]et\s*\(\s*$/))
excludedTokens.add('js-string');
if (excludedTokens.has(currentTokenType))
return Promise.resolve(historyWords);

Powered by Google App Engine
This is Rietveld 408576698