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

Function readPropDump

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

Source from the content-addressed store, hash-verified

266};
267
268const readPropDump = (context: QuickJSContext, handle: QuickJSHandle, key: string): unknown => {
269 const prop = context.getProp(handle, key);
270 try {
271 return context.dump(prop);
272 } finally {
273 prop.dispose();
274 }
275};
276
277const readOutputItems = (context: QuickJSContext): ExecuteOutputItem[] | undefined => {
278 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