MCPcopy
hub / github.com/GopeedLab/gopeed / Run

Function Run

pkg/download/engine/engine.go:161–164  ·  view source on GitHub ↗
(script string)

Source from the content-addressed store, hash-verified

159}
160
161func Run(script string) (value any, err error) {
162 engine := NewEngine(nil)
163 return engine.RunString(script)
164}
165
166// if the value is Promise, it will be resolved and return the result.
167func resolveResult(value goja.Value) (any, error) {

Callers 1

doTestPolyfillFunction · 0.85

Calls 2

RunStringMethod · 0.95
NewEngineFunction · 0.85

Tested by 1

doTestPolyfillFunction · 0.68