MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / execFn

Method execFn

src/interpreter/index.ts:137–143  ·  view source on GitHub ↗
(fn: VFn, args: Value[])

Source from the content-addressed store, hash-verified

135 */
136 @autobind
137 public async execFn(fn: VFn, args: Value[]): Promise<Value> {
138 return await this._fn(fn, args, [])
139 .catch(e => {
140 this.handleError(e);
141 return ERROR('func_failed');
142 });
143 }
144
145 /**
146 * Executes AiScript Function.

Callers

nothing calls this directly

Calls 3

_fnMethod · 0.95
handleErrorMethod · 0.95
ERRORFunction · 0.85

Tested by

no test coverage detected