(jit: () => result)
| 70 | !config.jitless && !refusesJit |
| 71 | |
| 72 | export const tryJit = <result>(jit: () => result): result | undefined => { |
| 73 | if (refusesJit) return |
| 74 | try { |
| 75 | return jit() |
| 76 | } catch (e) { |
| 77 | if (!(e instanceof EvalError)) throw e |
| 78 | refusesJit = true |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | export type CoercibleValue = string | number | boolean | null | undefined |
| 83 |
no test coverage detected