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

Method resolve

www/js/_hyperscript.js:7367–7379  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

7365 return new _JsCommand(jsBody.jsSource, func, inputs);
7366 }
7367 resolve(context) {
7368 var args = this.inputs.map((input) => context.meta.runtime.resolveSymbol(input, context, "local"));
7369 var result = this.function.apply(context.meta.runtime.globalScope, args);
7370 if (result && typeof result.then === "function") {
7371 return result.then((actualResult) => {
7372 context.result = actualResult;
7373 return this.findNext(context);
7374 });
7375 } else {
7376 context.result = result;
7377 return this.findNext(context);
7378 }
7379 }
7380 };
7381 var GetCommand = class _GetCommand extends Command {
7382 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