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); |