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

Method evaluateNoPromise

tools/common/_hyperscript.iife.js:2623–2629  ·  view source on GitHub ↗
(elt, ctx)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

evaluateMethod · 0.45
sourceForMethod · 0.45

Tested by

no test coverage detected