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

Method getStr

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

Source from the content-addressed store, hash-verified

191}
192
193func (o *dynamicObject) getStr(p unistring.String, receiver Value) Value {
194 prop := o.d.Get(p.String())
195 if prop == nil {
196 return o.getParentStr(p, receiver)
197 }
198 return prop
199}
200
201func (o *baseDynamicObject) getParentIdx(p valueInt, receiver Value) Value {
202 if proto := o.prototype; proto != nil {

Callers

nothing calls this directly

Calls 3

getParentStrMethod · 0.80
GetMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected