MCPcopy Create free account
hub / github.com/buke/quickjs-go / evalInt

Method evalInt

benchcmp/engines.go:40–46  ·  view source on GitHub ↗
(script string)

Source from the content-addressed store, hash-verified

38}
39
40func (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
48func (s *gojaSession) evalString(script string) (string, error) {
49 value, err := s.vm.RunString(script)

Callers

nothing calls this directly

Calls 2

normalizeIntFunction · 0.85
ExportMethod · 0.80

Tested by

no test coverage detected