(elt, ctx)
| 2621 | throw new Error("Unknown conversion : " + type); |
| 2622 | } |
| 2623 | evaluateNoPromise(elt, ctx) { |
| 2624 | let result = elt.evaluate(ctx); |
| 2625 | if (result && typeof result.then === "function") { |
| 2626 | throw new Error(elt.sourceFor() + " returned a Promise in a context that they are not allowed."); |
| 2627 | } |
| 2628 | return result; |
| 2629 | } |
| 2630 | typeCheck(value, typeString, nullOk) { |
| 2631 | if (value == null && nullOk) { |
| 2632 | return true; |