MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / evaluateNoPromise

Method evaluateNoPromise

www/js/_hyperscript.esm.js:2634–2640  ·  view source on GitHub ↗
(elt, ctx)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

evaluateMethod · 0.45
sourceForMethod · 0.45

Tested by

no test coverage detected