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

Method getParentStr

object_dynamic.go:183–191  ·  view source on GitHub ↗
(p unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

181}
182
183func (o *baseDynamicObject) getParentStr(p unistring.String, receiver Value) Value {
184 if proto := o.prototype; proto != nil {
185 if receiver == nil {
186 return proto.self.getStr(p, o.val)
187 }
188 return proto.self.getStr(p, receiver)
189 }
190 return nil
191}
192
193func (o *dynamicObject) getStr(p unistring.String, receiver Value) Value {
194 prop := o.d.Get(p.String())

Callers 2

getStrMethod · 0.80
getStrMethod · 0.80

Calls 1

getStrMethod · 0.65

Tested by

no test coverage detected