MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / evaluate

Function evaluate

tests/e2e/smoke/chart-runtime.smoke.test.js:370–380  ·  view source on GitHub ↗
(client, expression)

Source from the content-addressed store, hash-verified

368}
369
370async function evaluate(client, expression) {
371 const result = await client.send('Runtime.evaluate', {
372 expression,
373 awaitPromise: true,
374 returnByValue: true,
375 })
376 if (result.exceptionDetails) {
377 throw new Error(`Runtime.evaluate failed: ${JSON.stringify(result.exceptionDetails)}`)
378 }
379 return result.result?.value
380}
381
382async function getRendererSnapshot(client) {
383 return evaluate(

Callers 2

getRendererSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected