Chromium Code Reviews| Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| index b3e13c72b32cf9d9abee035e3823fd154179a6cf..5569670846990bc2312038f8aab64116424631ae 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| @@ -171,7 +171,7 @@ function doesAttributeHaveObservableSideEffectOnGet(object, attribute) |
| { |
| for (var interfaceName in domAttributesWithObservableSideEffectOnGet) { |
| var interfaceFunction = inspectedGlobalObject[interfaceName]; |
| - var isInstance = typeof interfaceFunction === "function" && object instanceof interfaceFunction; |
| + var isInstance = typeof interfaceFunction === "function" && /* suppressBlacklist */ object instanceof interfaceFunction; |
| if (isInstance) |
| return attribute in domAttributesWithObservableSideEffectOnGet[interfaceName]; |
| } |
| @@ -198,18 +198,17 @@ InjectedScript.primitiveTypes = { |
| } |
| /** |
| - * @type {!Map<string, string>} |
| + * @type {!Object<string, string>} |
| * @const |
| */ |
| -InjectedScript.closureTypes = new Map([ |
| - ["local", "Local"], |
| - ["closure", "Closure"], |
| - ["catch", "Catch"], |
| - ["block", "Block"], |
| - ["script", "Script"], |
| - ["with", "With Block"], |
| - ["global", "Global"] |
| -]); |
| +InjectedScript.closureTypes = {}; |
|
dgozman
2016/08/10 16:48:36
__proto__: null
kozy
2016/08/10 17:02:43
Done.
|
| +InjectedScript.closureTypes["local"] = "Local"; |
| +InjectedScript.closureTypes["closure"] = "Closure"; |
| +InjectedScript.closureTypes["catch"] = "Catch"; |
| +InjectedScript.closureTypes["block"] = "Block"; |
| +InjectedScript.closureTypes["script"] = "Script"; |
| +InjectedScript.closureTypes["with"] = "With Block"; |
| +InjectedScript.closureTypes["global"] = "Global"; |
| InjectedScript.prototype = { |
| /** |
| @@ -637,7 +636,7 @@ InjectedScript.prototype = { |
| if (isSymbol(obj)) { |
| try { |
| - return obj.toString() || "Symbol"; |
| + return /* suppressBlacklist */ obj.toString() || "Symbol"; |
| } catch (e) { |
| return "Symbol"; |
| } |
| @@ -668,7 +667,7 @@ InjectedScript.prototype = { |
| return "Scopes[" + obj.length + "]"; |
| if (subtype === "internal#scope") |
| - return (InjectedScript.closureTypes.get(obj.type) || "Unknown") + (obj.name ? " (" + obj.name + ")" : ""); |
| + return (InjectedScript.closureTypes[obj.type] || "Unknown") + (obj.name ? " (" + obj.name + ")" : ""); |
| return className; |
| }, |
| @@ -793,7 +792,7 @@ InjectedScript.RemoteObject.prototype = { |
| */ |
| function logError(error) |
| { |
| - Promise.resolve().then(inspectedGlobalObject.console.error.bind(inspectedGlobalObject.console, "Custom Formatter Failed: " + error.message)); |
| + Promise.resolve().then(/* suppressBlacklist */ inspectedGlobalObject.console.error.bind(inspectedGlobalObject.console, "Custom Formatter Failed: " + error.message)); |
| } |
| /** |