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

Function readPropDump

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

Source from the content-addressed store, hash-verified

201};
202
203const readPropDump = (context: QuickJSContext, handle: QuickJSHandle, key: string): unknown => {
204 const prop = context.getProp(handle, key);
205 try {
206 return context.dump(prop);
207 } finally {
208 prop.dispose();
209 }
210};
211
212const readOutputItems = (context: QuickJSContext): ExecuteOutputItem[] | undefined => {
213 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