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

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

Issue 2639703002: DevTools: Console: Provide autocompletions for Maps (Closed)
Patch Set: New RemoteObject api 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5351fa7ec4caf519e71075d3f871d2dcdf3b365f..11d9e3305c8cb4b5bfc637d33d9ed7e233fa3bd4 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*(get|set|delete)\s*\(\s*$/))
excludedTokens.add('js-string');
if (!trimmedBefore.endsWith('.'))
excludedTokens.add('js-property');
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/JavaScriptAutocomplete.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698