Index: Source/core/inspector/InjectedScriptSource.js |
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js |
index d4d366d4fb37a7295c481aa3649d388adb629560..327c84510d1058e4853c0bd915e9ac3cac896a2f 100644 |
--- a/Source/core/inspector/InjectedScriptSource.js |
+++ b/Source/core/inspector/InjectedScriptSource.js |
@@ -1008,6 +1008,14 @@ InjectedScript.prototype = { |
if (typeof obj === "function") |
return toString(obj); |
+ if (typeof obj === "symbol") { |
+ try { |
+ return Symbol.prototype.toString.call(obj) || "Symbol"; |
+ } catch (e) { |
+ return "Symbol"; |
+ } |
+ } |
+ |
if (className === "Object") { |
// In Chromium DOM wrapper prototypes will have Object as their constructor name, |
// get the real DOM wrapper name from the constructor property. |