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 bac0f5f7ecd7022ce78a0c5ae34e0eef0cd8a500..6c52870d314283273b48521510061d1c9631cec8 100644 |
| --- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js |
| @@ -212,6 +212,15 @@ InjectedScript.prototype = { |
| /** |
| * @param {*} object |
| + * @return {boolean} |
| + */ |
| + isInternalObject: function(object) |
| + { |
| + return typeof object === "object" && InjectedScriptHost.subtype(object) === "internal#location"; |
| + }, |
| + |
| + /** |
| + * @param {*} object |
| * @param {string} groupName |
| * @param {boolean} canAccessInspectedGlobalObject |
| * @param {boolean} forceValueType |
| @@ -716,6 +725,12 @@ InjectedScript.RemoteObject = function(object, objectGroupName, doNotBind, force |
| return; |
| } |
| + if (injectedScript.isInternalObject(object)) { |
|
dgozman
2016/07/06 19:25:12
shouldPassByValue
kozy
2016/07/06 22:38:41
Done.
|
| + this.value = object; |
| + this.subtype = injectedScript._subtype(object); |
|
dgozman
2016/07/06 19:25:12
Let's add description?
kozy
2016/07/06 22:38:41
Done.
|
| + return; |
| + } |
| + |
| object = /** @type {!Object} */ (object); |
| if (!doNotBind) |