| Index: Source/core/inspector/InjectedScriptSource.js
|
| diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js
|
| index 327c84510d1058e4853c0bd915e9ac3cac896a2f..4f42e8db4127745e2a61d2497508ff280bc27fd0 100644
|
| --- a/Source/core/inspector/InjectedScriptSource.js
|
| +++ b/Source/core/inspector/InjectedScriptSource.js
|
| @@ -973,7 +973,7 @@ InjectedScript.prototype = {
|
| if (this.isPrimitiveValue(obj))
|
| return null;
|
|
|
| - // Type is object, get subtype.
|
| + var type = typeof obj;
|
| var subtype = this._subtype(obj);
|
|
|
| if (subtype === "regexp")
|
| @@ -1005,10 +1005,10 @@ InjectedScript.prototype = {
|
| }
|
|
|
| // NodeList in JSC is a function, check for array prior to this.
|
| - if (typeof obj === "function")
|
| + if (type === "function")
|
| return toString(obj);
|
|
|
| - if (typeof obj === "symbol") {
|
| + if (type === "symbol") {
|
| try {
|
| return Symbol.prototype.toString.call(obj) || "Symbol";
|
| } catch (e) {
|
|
|