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

Method evaluateNoPromise

www/js/_hyperscript-max.js:2635–2641  ·  view source on GitHub ↗
(elt, ctx)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

evaluateMethod · 0.45
sourceForMethod · 0.45

Tested by

no test coverage detected