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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 2178263003: [DevTools] Fix function property preview in ObjectPropertySection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/LayoutTests/inspector/console/console-dir-es6-expected.txt ('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/components/ObjectPropertiesSection.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js b/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js
index 9019e3bd8fe0404eb74c650d566e7cd90c1d8a21..3c3cb990ea9675b1447d99293da9d1e73f950e16 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js
@@ -977,7 +977,7 @@ WebInspector.ObjectPropertiesSection.createNameElement = function(name)
WebInspector.ObjectPropertiesSection.valueTextForFunctionDescription = function(description)
{
var text = description.replace(/^function [gs]et /, "function ");
- var matches = /function\s([^)]*)/.exec(text);
+ var matches = /^function\s([^)]*)/.exec(text);
if (!matches) {
// process shorthand methods
matches = /[^(]*(\([^)]*)/.exec(text);
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-dir-es6-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698