(fn: VFn, args: Value[])
| 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. |
nothing calls this directly
no test coverage detected