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

Function readPropDump

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

Source from the content-addressed store, hash-verified

211};
212
213const readPropDump = (context: QuickJSContext, handle: QuickJSHandle, key: string): unknown => {
214 const prop = context.getProp(handle, key);
215 try {
216 return context.dump(prop);
217 } finally {
218 prop.dispose();
219 }
220};
221
222const readOutputItems = (context: QuickJSContext): ExecuteOutputItem[] | undefined => {
223 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