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

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

Issue 307533006: DevTools: Fix closure compiler error. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | « Source/core/inspector/InjectedScriptExterns.js ('k') | no next file » | no next file with comments »
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 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) {
« no previous file with comments | « Source/core/inspector/InjectedScriptExterns.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698