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

Method evalString

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

Source from the content-addressed store, hash-verified

46}
47
48func (s *gojaSession) evalString(script string) (string, error) {
49 value, err := s.vm.RunString(script)
50 if err != nil {
51 return "", err
52 }
53 return normalizeString(value.Export())
54}
55
56func (s *gojaSession) close() {}
57

Callers

nothing calls this directly

Calls 2

normalizeStringFunction · 0.85
ExportMethod · 0.80

Tested by

no test coverage detected