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

Method getStr

proxy.go:601–611  ·  view source on GitHub ↗
(name unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

599}
600
601func (p *proxyObject) getStr(name unistring.String, receiver Value) Value {
602 target := p.target
603 if receiver == nil {
604 receiver = p.val
605 }
606 if v, ok := p.checkHandler().getStr(target, name, receiver); ok {
607 p.proxyGetChecks(target.self.getOwnPropStr(name), v, name)
608 return v
609 }
610 return target.self.getStr(name, receiver)
611}
612
613func (p *proxyObject) getIdx(idx valueInt, receiver Value) Value {
614 target := p.target

Callers

nothing calls this directly

Calls 4

checkHandlerMethod · 0.95
proxyGetChecksMethod · 0.95
getStrMethod · 0.65
getOwnPropStrMethod · 0.65

Tested by

no test coverage detected