({ schemaEnv }, def)
| 3372 | }, () => cxt.error()); |
| 3373 | } |
| 3374 | function checkAsyncKeyword({ schemaEnv }, def) { |
| 3375 | if (def.async && !schemaEnv.$async) |
| 3376 | throw new Error("async keyword in sync schema"); |
| 3377 | } |
| 3378 | function useKeyword(gen, keyword, result) { |
| 3379 | if (result === undefined) |
| 3380 | throw new Error(`keyword "${keyword}" failed to compile`); |