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

Method getIdx

proxy.go:613–623  ·  view source on GitHub ↗
(idx valueInt, receiver Value)

Source from the content-addressed store, hash-verified

611}
612
613func (p *proxyObject) getIdx(idx valueInt, receiver Value) Value {
614 target := p.target
615 if receiver == nil {
616 receiver = p.val
617 }
618 if v, ok := p.checkHandler().getIdx(target, idx, receiver); ok {
619 p.proxyGetChecks(target.self.getOwnPropIdx(idx), v, idx)
620 return v
621 }
622 return target.self.getIdx(idx, receiver)
623}
624
625func (p *proxyObject) getSym(s *Symbol, receiver Value) Value {
626 target := p.target

Callers

nothing calls this directly

Calls 4

checkHandlerMethod · 0.95
proxyGetChecksMethod · 0.95
getIdxMethod · 0.65
getOwnPropIdxMethod · 0.65

Tested by

no test coverage detected