( context: QuickJSContext, handle: QuickJSHandle, )
| 280 | }; |
| 281 | |
| 282 | const readResultState = ( |
| 283 | context: QuickJSContext, |
| 284 | handle: QuickJSHandle, |
| 285 | ): { |
| 286 | settled: boolean; |
| 287 | value: unknown; |
| 288 | error: unknown; |
| 289 | } => ({ |
| 290 | settled: readPropDump(context, handle, "settled") === true, |
| 291 | value: readPropDump(context, handle, "v"), |
| 292 | error: readPropDump(context, handle, "e"), |
| 293 | }); |
| 294 | |
| 295 | const createLogBridge = (context: QuickJSContext, logs: string[]): QuickJSHandle => |
| 296 | context.newFunction("__executor_log", (levelHandle, lineHandle) => { |
no test coverage detected