| Index: third_party/WebKit/Source/devtools/front_end/sdk/Target.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
|
| index f6b0db16038f4cfffa5cb98fec6ad10b1b532631..033bede2a79d1f8d87540f987ddaadc5a31d3ed5 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
|
| @@ -45,6 +45,20 @@ WebInspector.Target._nextId = 1;
|
|
|
| WebInspector.Target.prototype = {
|
| /**
|
| + * @return {boolean}
|
| + */
|
| + isNodeJS: function()
|
| + {
|
| + // TODO(lushnikov): this is an unreliable way to detect Node.js targets.
|
| + return this._capabilitiesMask === WebInspector.Target.Capability.JS || this._isNodeJSForTest;
|
| + },
|
| +
|
| + setIsNodeJSForTest: function()
|
| + {
|
| + this._isNodeJSForTest = true;
|
| + },
|
| +
|
| + /**
|
| * @return {number}
|
| */
|
| id: function()
|
|
|