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

Function readPropDump

packages/kernel/runtime-quickjs/src/index.ts:248–255  ·  view source on GitHub ↗
(context: QuickJSContext, handle: QuickJSHandle, key: string)

Source from the content-addressed store, hash-verified

246};
247
248const readPropDump = (context: QuickJSContext, handle: QuickJSHandle, key: string): unknown => {
249 const prop = context.getProp(handle, key);
250 try {
251 return context.dump(prop);
252 } finally {
253 prop.dispose();
254 }
255};
256
257const readOutputItems = (context: QuickJSContext): ExecuteOutputItem[] | undefined => {
258 const output = readPropDump(context, context.global, "__executor_outputs");

Callers 2

readOutputItemsFunction · 0.85
readResultStateFunction · 0.85

Calls 1

disposeMethod · 0.80

Tested by

no test coverage detected