(script string)
| 73 | } |
| 74 | |
| 75 | func (e *ScriptEngine) Execute(script string) error { |
| 76 | e.mu.Lock() |
| 77 | defer e.mu.Unlock() |
| 78 | |
| 79 | _, err := e.runtime.RunString(script) |
| 80 | if err != nil { |
| 81 | return fmt.Errorf("script execution error in '%s': %w", e.name, err) |
| 82 | } |
| 83 | return nil |
| 84 | } |
| 85 | |
| 86 | ////////// |
| 87 |
no outgoing calls
no test coverage detected