Chromium Code Reviews| Index: Source/core/inspector/InjectedScriptSource.js |
| diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js |
| index d4d366d4fb37a7295c481aa3649d388adb629560..a9c1b4c1049c2d1f1f2f222e67f46ae6606ece5b 100644 |
| --- a/Source/core/inspector/InjectedScriptSource.js |
| +++ b/Source/core/inspector/InjectedScriptSource.js |
| @@ -1008,6 +1008,9 @@ InjectedScript.prototype = { |
| if (typeof obj === "function") |
| return toString(obj); |
| + if (typeof obj === "symbol") |
| + return Symbol.prototype.toString.call(obj); |
|
yurys
2014/05/22 15:25:49
toString(obj) as Symbol.prototype.toString can be
aandrey
2014/05/22 15:29:50
We already use Object.prototype.toString in the co
aandrey
2014/05/22 15:31:12
wrap it in try-catch
yurys
2014/05/22 15:49:37
I'm wondering if the conversion is prohibited by t
Alexandra Mikhaylova
2014/05/22 16:07:59
Done, wrapped in a try-catch block.
|
| + |
| 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. |