( context: QuickJSContext, handle: QuickJSHandle, )
| 260 | }; |
| 261 | |
| 262 | const readResultState = ( |
| 263 | context: QuickJSContext, |
| 264 | handle: QuickJSHandle, |
| 265 | ): { |
| 266 | settled: boolean; |
| 267 | value: unknown; |
| 268 | error: unknown; |
| 269 | } => ({ |
| 270 | settled: readPropDump(context, handle, "settled") === true, |
| 271 | value: readPropDump(context, handle, "v"), |
| 272 | error: readPropDump(context, handle, "e"), |
| 273 | }); |
| 274 | |
| 275 | const createLogBridge = (context: QuickJSContext, logs: string[]): QuickJSHandle => |
| 276 | context.newFunction("__executor_log", (levelHandle, lineHandle) => { |
no test coverage detected