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

Unified Diff: Source/core/inspector/InjectedScriptSource.js

Issue 303113002: Correctly handle object classname and add Symbol type to PropertyPreview and CallArgument in the pr… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | Source/devtools/protocol.json » ('j') | Source/devtools/protocol.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptSource.js
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js
index 4f42e8db4127745e2a61d2497508ff280bc27fd0..b7cd5cba75e7884fb859cc4f121ccde27ba07f34 100644
--- a/Source/core/inspector/InjectedScriptSource.js
+++ b/Source/core/inspector/InjectedScriptSource.js
@@ -1077,7 +1077,9 @@ InjectedScript.RemoteObject = function(object, objectGroupName, forceValueType,
var subtype = injectedScript._subtype(object);
if (subtype)
this.subtype = subtype;
- this.className = InjectedScriptHost.internalConstructorName(object);
+ var className = InjectedScriptHost.internalConstructorName(object);
+ if (className)
+ this.className = className;
this.description = injectedScript._describe(object);
if (generatePreview && (this.type === "object" || injectedScript._isHTMLAllCollection(object)))
« no previous file with comments | « no previous file | Source/devtools/protocol.json » ('j') | Source/devtools/protocol.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698