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

Method evaluateNoPromise

src/core/runtime/runtime.js:640–646  ·  view source on GitHub ↗
(elt, ctx)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

evaluateMethod · 0.45
sourceForMethod · 0.45

Tested by

no test coverage detected