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

Method resolve

tools/common/_hyperscript.iife.js:6971–6983  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

6969 return new _JsCommand(jsBody.jsSource, func, inputs);
6970 }
6971 resolve(context) {
6972 var args = this.inputs.map((input) => context.meta.runtime.resolveSymbol(input, context, "default"));
6973 var result = this.function.apply(context.meta.runtime.globalScope, args);
6974 if (result && typeof result.then === "function") {
6975 return result.then((actualResult) => {
6976 context.result = actualResult;
6977 return this.findNext(context);
6978 });
6979 } else {
6980 context.result = result;
6981 return this.findNext(context);
6982 }
6983 }
6984 };
6985 var GetCommand = class _GetCommand extends Command {
6986 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