(acc)
| 32457 | } |
| 32458 | if (effect.type === "refinement") { |
| 32459 | const executeRefinement = (acc) => { |
| 32460 | const result = effect.refinement(acc, checkCtx); |
| 32461 | if (ctx.common.async) { |
| 32462 | return Promise.resolve(result); |
| 32463 | } |
| 32464 | if (result instanceof Promise) { |
| 32465 | throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); |
| 32466 | } |
| 32467 | return acc; |
| 32468 | }; |
| 32469 | if (ctx.common.async === false) { |
| 32470 | const inner = this._def.schema._parseSync({ |
| 32471 | data: ctx.data, |
nothing calls this directly
no test coverage detected