(elt, ctx)
| 2634 | throw new Error("Unknown conversion : " + type); |
| 2635 | } |
| 2636 | evaluateNoPromise(elt, ctx) { |
| 2637 | let result = elt.evaluate(ctx); |
| 2638 | if (result && typeof result.then === "function") { |
| 2639 | throw new Error(elt.sourceFor() + " returned a Promise in a context that they are not allowed."); |
| 2640 | } |
| 2641 | return result; |
| 2642 | } |
| 2643 | typeCheck(value, typeString, nullOk) { |
| 2644 | if (value == null && nullOk) { |
| 2645 | return true; |