( context: QuickJSContext, handle: QuickJSHandle, )
| 225 | }; |
| 226 | |
| 227 | const readResultState = ( |
| 228 | context: QuickJSContext, |
| 229 | handle: QuickJSHandle, |
| 230 | ): { |
| 231 | settled: boolean; |
| 232 | value: unknown; |
| 233 | error: unknown; |
| 234 | } => ({ |
| 235 | settled: readPropDump(context, handle, "settled") === true, |
| 236 | value: readPropDump(context, handle, "v"), |
| 237 | error: readPropDump(context, handle, "e"), |
| 238 | }); |
| 239 | |
| 240 | const createLogBridge = (context: QuickJSContext, logs: string[]): QuickJSHandle => |
| 241 | context.newFunction("__executor_log", (levelHandle, lineHandle) => { |
no test coverage detected