(elt, ctx)
| 638 | } |
| 639 | |
| 640 | evaluateNoPromise(elt, ctx) { |
| 641 | let result = elt.evaluate(ctx); |
| 642 | if (result && typeof result.then === "function") { |
| 643 | throw new Error(elt.sourceFor() + " returned a Promise in a context that they are not allowed."); |
| 644 | } |
| 645 | return result; |
| 646 | } |
| 647 | |
| 648 | typeCheck(value, typeString, nullOk) { |
| 649 | if (value == null && nullOk) { |