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

Method getOwnPropIdx

proxy.go:569–576  ·  view source on GitHub ↗
(idx valueInt)

Source from the content-addressed store, hash-verified

567}
568
569func (p *proxyObject) getOwnPropIdx(idx valueInt) Value {
570 target := p.target
571 if v, ok := p.checkHandler().getOwnPropertyDescriptorIdx(target, idx); ok {
572 return p.proxyGetOwnPropertyDescriptor(target.self.getOwnPropIdx(idx), target, v, idx)
573 }
574
575 return target.self.getOwnPropIdx(idx)
576}
577
578func (p *proxyObject) getOwnPropSym(s *Symbol) Value {
579 target := p.target

Callers 1

hasOwnPropertyIdxMethod · 0.95

Calls 4

checkHandlerMethod · 0.95
getOwnPropIdxMethod · 0.65

Tested by

no test coverage detected