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

Method resolve

www/js/_hyperscript.esm.js:7365–7377  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

7363 return new _JsCommand(jsBody.jsSource, func, inputs);
7364 }
7365 resolve(context) {
7366 var args = this.inputs.map((input) => context.meta.runtime.resolveSymbol(input, context, "local"));
7367 var result = this.function.apply(context.meta.runtime.globalScope, args);
7368 if (result && typeof result.then === "function") {
7369 return result.then((actualResult) => {
7370 context.result = actualResult;
7371 return this.findNext(context);
7372 });
7373 } else {
7374 context.result = result;
7375 return this.findNext(context);
7376 }
7377 }
7378};
7379var GetCommand = class _GetCommand extends Command {
7380 static keyword = ["get", "call"];

Callers

nothing calls this directly

Calls 3

resolveSymbolMethod · 0.45
applyMethod · 0.45
findNextMethod · 0.45

Tested by

no test coverage detected