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

Method resolve

www/js/_hyperscript-max.js:7366–7378  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

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