Call calls function with this VM. Call can NOT be executed concurrency
(ctx context.Context, fn string, args ...any)
| 101 | |
| 102 | // Call calls function with this VM. Call can NOT be executed concurrency |
| 103 | func (v *VM) Call(ctx context.Context, fn string, args ...any) (value *Value, e error) { |
| 104 | return wrapVmRun(ctx, v, func() (otto.Value, error) { |
| 105 | a, b := v.o.Call(fn, nil, args...) |
| 106 | return a, b |
| 107 | }) |
| 108 | } |
| 109 | |
| 110 | func (v *VM) GetValue(prop string) (value *Value, e error) { |
| 111 | vv, e := v.o.Get(prop) |
no test coverage detected