( context: QuickJSContext, handle: QuickJSHandle, )
| 215 | }; |
| 216 | |
| 217 | const readResultState = ( |
| 218 | context: QuickJSContext, |
| 219 | handle: QuickJSHandle, |
| 220 | ): { |
| 221 | settled: boolean; |
| 222 | value: unknown; |
| 223 | error: unknown; |
| 224 | } => ({ |
| 225 | settled: readPropDump(context, handle, "settled") === true, |
| 226 | value: readPropDump(context, handle, "v"), |
| 227 | error: readPropDump(context, handle, "e"), |
| 228 | }); |
| 229 | |
| 230 | const createLogBridge = (context: QuickJSContext, logs: string[]): QuickJSHandle => |
| 231 | context.newFunction("__executor_log", (levelHandle, lineHandle) => { |
no test coverage detected