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

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

Issue 2639703002: DevTools: Console: Provide autocompletions for Maps (Closed)
Patch Set: Use [[Entries]] instead of preview 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 c1f8a5eef4b74c6b2b0a6318708f3ce9860904e7..cb1d8bdaf7de0e8204eb43b914ff933036f6456d 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
@@ -264,7 +264,7 @@ Console.ConsolePrompt = class extends UI.Widget {
var excludedTokens = new Set(['js-comment', 'js-string-2', 'js-def']);
var trimmedBefore = before.trim();
- if (!trimmedBefore.endsWith('['))
+ if (!trimmedBefore.endsWith('[') && !trimmedBefore.match(/\.\s*[gs]et\s*\(\s*$/))
excludedTokens.add('js-string');
if (!trimmedBefore.endsWith('.'))
excludedTokens.add('js-property');

Powered by Google App Engine
This is Rietveld 408576698