MCPcopy Index your code
hub / github.com/nodejs/node / _sendCommandPromise

Method _sendCommandPromise

deps/v8/test/inspector/protocol-test.js:396–404  ·  view source on GitHub ↗
(method, params)

Source from the content-addressed store, hash-verified

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({}, {

Callers 1

_setupProtocolMethod · 0.80

Calls 3

sendRawCommandMethod · 0.80
hasMethod · 0.65
printMethod · 0.45

Tested by

no test coverage detected