MCPcopy Create free account
hub / github.com/dop251/goja / _getStr

Method _getStr

object_gomap.go:21–27  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

19}
20
21func (o *objectGoMapSimple) _getStr(name string) Value {
22 v, exists := o.data[name]
23 if !exists {
24 return nil
25 }
26 return o.val.runtime.ToValue(v)
27}
28
29func (o *objectGoMapSimple) getStr(name unistring.String, receiver Value) Value {
30 if v := o._getStr(name.String()); v != nil {

Callers 2

getStrMethod · 0.95
getOwnPropStrMethod · 0.95

Calls 1

ToValueMethod · 0.80

Tested by

no test coverage detected