(script string)
| 38 | } |
| 39 | |
| 40 | func (s *gojaSession) evalInt(script string) (int64, error) { |
| 41 | value, err := s.vm.RunString(script) |
| 42 | if err != nil { |
| 43 | return 0, err |
| 44 | } |
| 45 | return normalizeInt(value.Export()) |
| 46 | } |
| 47 | |
| 48 | func (s *gojaSession) evalString(script string) (string, error) { |
| 49 | value, err := s.vm.RunString(script) |
nothing calls this directly
no test coverage detected