Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js |
index 22513acb29a796012e3c8e90d93203916acf4ac4..ba9737d2dbd803b8955b0fcfd85c6508d0a4f8a6 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js |
@@ -571,7 +571,7 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame { |
var functionLocation = callFrame.functionLocation(); |
if (localScope && functionLocation) { |
Sources.SourceMapNamesResolver.resolveScopeInObject(localScope) |
- .getAllProperties(false, this._prepareScopeVariables.bind(this, callFrame)); |
+ .getAllProperties(false, false, this._prepareScopeVariables.bind(this, callFrame)); |
} |
if (this._clearValueWidgetsTimer) { |
@@ -689,10 +689,12 @@ Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame { |
var value = valuesMap.get(name); |
var propertyCount = value.preview ? value.preview.properties.length : 0; |
var entryCount = value.preview && value.preview.entries ? value.preview.entries.length : 0; |
- if (value.preview && propertyCount + entryCount < 10) |
- formatter.appendObjectPreview(nameValuePair, value.preview); |
- else |
- nameValuePair.appendChild(Components.ObjectPropertiesSection.createValueElement(value, false)); |
+ if (value.preview && propertyCount + entryCount < 10) { |
+ formatter.appendObjectPreview(nameValuePair, value.preview, false /* isEntry */); |
+ } else { |
+ nameValuePair.appendChild(Components.ObjectPropertiesSection.createValueElement( |
+ value, false /* wasThrown */, false /* showPreview */)); |
+ } |
++renderedNameCount; |
} |