MCPcopy Create free account
hub / github.com/devld/go-drive / Run

Method Run

script/runtime.go:96–100  ·  view source on GitHub ↗

Run runs code with this VM. Run can NOT be executed concurrency

(ctx context.Context, code any)

Source from the content-addressed store, hash-verified

94
95// Run runs code with this VM. Run can NOT be executed concurrency
96func (v *VM) Run(ctx context.Context, code any) (*Value, error) {
97 return wrapVmRun(ctx, v, func() (otto.Value, error) {
98 return v.o.Run(code)
99 })
100}
101
102// Call calls function with this VM. Call can NOT be executed concurrency
103func (v *VM) Call(ctx context.Context, fn string, args ...any) (value *Value, e error) {

Callers 15

initMethod · 0.95
initFunction · 0.95
initFunction · 0.95
TestMainFunction · 0.80
TestMainFunction · 0.80
Test_isValidUploadIdPartFunction · 0.80

Calls 1

wrapVmRunFunction · 0.85