(method, params)
| 394 | } |
| 395 | |
| 396 | _sendCommandPromise(method, params) { |
| 397 | if (typeof params !== 'object') |
| 398 | utils.print(`WARNING: non-object params passed to invocation of method ${method}`); |
| 399 | if (InspectorTest._commandsForLogging.has(method)) |
| 400 | utils.print(method + ' called'); |
| 401 | var requestId = ++this._requestId; |
| 402 | var messageObject = { "id": requestId, "method": method, "params": params }; |
| 403 | return new Promise(fulfill => this.sendRawCommand(requestId, JSON.stringify(messageObject), fulfill)); |
| 404 | } |
| 405 | |
| 406 | _setupProtocol() { |
| 407 | return new Proxy({}, { get: (target, agentName, receiver) => new Proxy({}, { |
no test coverage detected