MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / eval

Method eval

e2e/desktop-packaged/linux-vm/repro.mjs:104–111  ·  view source on GitHub ↗
(expression)

Source from the content-addressed store, hash-verified

102 return p;
103 }
104 async eval(expression) {
105 const r = await this.cmd("Runtime.evaluate", {
106 expression,
107 awaitPromise: true,
108 returnByValue: true,
109 });
110 return r?.result?.value;
111 }
112}
113
114const pageWsFor = async (debugPort) => {

Callers 2

bodyHasFunction · 0.80
mainFunction · 0.80

Calls 1

cmdMethod · 0.95

Tested by

no test coverage detected