Index: third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js b/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js |
index e2043fb7484920fccd2eaec925e944d1b35ecac9..c5fa5aad85b625c8f4c35ef13a3c4a0ee2c9fbf5 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js |
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js |
@@ -152,16 +152,16 @@ |
addElements('class', textAfterPrefix, className); |
} else if (isAsync) { |
textAfterPrefix = text.substring('async function'.length); |
- addElements('async \u0192', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
+ addElements('async function', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
} else if (isGenerator) { |
textAfterPrefix = text.substring('function*'.length); |
- addElements('\u0192*', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
+ addElements('function*', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
} else if (isGeneratorShorthand) { |
textAfterPrefix = text.substring('*'.length); |
- addElements('\u0192*', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
+ addElements('function*', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
} else if (isBasic) { |
textAfterPrefix = text.substring('function'.length); |
- addElements('\u0192', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
+ addElements('function', textAfterPrefix, nameAndArguments(textAfterPrefix)); |
} else if (isArrow) { |
const maxArrowFunctionCharacterLength = 60; |
var abbreviation = text; |
@@ -171,7 +171,7 @@ |
abbreviation = text.substring(0, firstArrowIndex + 2) + ' {\u2026}'; |
addElements('', text, abbreviation); |
} else { |
- addElements('\u0192', text, nameAndArguments(text)); |
+ addElements('function', text, nameAndArguments(text)); |
} |
valueElement.title = description || ''; |
return valueElement; |
@@ -738,10 +738,7 @@ |
return null; |
var valueElement = createElementWithClass('span', 'value'); |
- if (value.description === 'Object') |
- valueElement.textContent = ''; |
- else |
- valueElement.setTextContentTruncatedIfNeeded(value.description || ''); |
+ valueElement.setTextContentTruncatedIfNeeded(value.description || ''); |
valueElement.classList.add('object-value-' + (value.subtype || value.type)); |
valueElement.title = value.description || ''; |
return valueElement; |