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

Method getStr

object_template.go:91–97  ·  view source on GitHub ↗
(name unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

89}
90
91func (o *templatedObject) getStr(name unistring.String, receiver Value) Value {
92 ownProp := o.getOwnPropStr(name)
93 if ownProp == nil {
94 o.materialiseProto()
95 }
96 return o.getStrWithOwnProp(ownProp, name, receiver)
97}
98
99func (o *templatedObject) getSym(s *Symbol, receiver Value) Value {
100 ownProp := o.getOwnPropSym(s)

Callers

nothing calls this directly

Calls 3

getOwnPropStrMethod · 0.95
materialiseProtoMethod · 0.95
getStrWithOwnPropMethod · 0.80

Tested by

no test coverage detected