MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / evaluateNoPromise

Method evaluateNoPromise

www/js/_hyperscript.js:2636–2642  ·  view source on GitHub ↗
(elt, ctx)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

evaluateMethod · 0.45
sourceForMethod · 0.45

Tested by

no test coverage detected